define("value/jwplayer/6.6.3896/jwplayer.html5-debug", [ "./jwplayer-debug" ], function(require, exports, module) {
    var jwplayer = require("./jwplayer-debug");
    (function(f) {
        f.html5 = {};
        f.html5.version = "6.6.3896";
    })(jwplayer);
    (function(f) {
        f.parseDimension = function(g) {
            if ("string" == typeof g) {
                if ("" === g) return 0;
                if (!(-1 < g.lastIndexOf("%"))) return parseInt(g.replace("px", ""), 10);
            }
            return g;
        };
        f.timeFormat = function(g) {
            if (0 < g) {
                var b = Math.floor(g / 3600), e = Math.floor((g - 3600 * b) / 60);
                g = Math.floor(g % 60);
                return (b ? b + ":" : "") + (10 > e ? "0" : "") + e + ":" + (10 > g ? "0" : "") + g;
            }
            return "00:00";
        };
        f.bounds = function(g) {
            try {
                var b = g.getBoundingClientRect(g), e = window.pageYOffset, c = window.pageXOffset;
                return {
                    left: b.left + c,
                    right: b.right + c,
                    top: b.top + e,
                    bottom: b.bottom + e,
                    width: b.right - b.left,
                    height: b.bottom - b.top
                };
            } catch (a) {
                return {
                    left: 0,
                    right: 0,
                    width: 0,
                    height: 0,
                    top: 0,
                    bottom: 0
                };
            }
        };
        f.empty = function(g) {
            if (g) for (;0 < g.childElementCount; ) g.removeChild(g.children[0]);
        };
    })(jwplayer.utils);
    (function(f) {
        function g() {
            var b = document.createElement("style");
            b.type = "text/css";
            document.getElementsByTagName("head")[0].appendChild(b);
            return b;
        }
        function b(b) {
            if (A) c[b].innerHTML = e(b); else {
                var a = c[b].sheet, d = q[b];
                if (a) {
                    var g = a.cssRules;
                    f.exists(d) && d < g.length && g[d].selectorText == b ? a.deleteRule(d) : q[b] = g.length;
                    a.insertRule(e(b), q[b]);
                }
            }
        }
        function e(b) {
            var a = b + "{\n";
            h(d[b], function(b, d) {
                a += "  " + b + ": " + d + ";\n";
            });
            return a += "}\n";
        }
        var c = {}, a, d = {}, r = 0, j = f.exists, h = f.foreach, q = {}, A = !1, n = f.css = function(e, k, p) {
            if (!c[e]) if (A) c[e] = g(); else {
                if (!a || 5e4 < a.sheet.cssRules.length) a = g();
                c[e] = a;
            }
            j(p) || (p = !1);
            d[e] || (d[e] = {});
            h(k, function(b, a) {
                a: {
                    var c = a;
                    if ("undefined" === typeof c) a = void 0; else {
                        var k = p ? " !important" : "";
                        if (isNaN(c)) a = c.match(/png|gif|jpe?g/i) && 0 > c.indexOf("url") ? "url(" + c + ")" : c + k; else switch (b) {
                          case "z-index":
                          case "opacity":
                            a = c + k;
                            break a;

                          default:
                            a = b.match(/color/i) ? "#" + f.pad(c.toString(16).replace(/^0x/i, ""), 6) + k : 0 === c ? 0 + k : Math.ceil(c) + "px" + k;
                        }
                    }
                }
                j(d[e][b]) && !j(a) ? delete d[e][b] : j(a) && (d[e][b] = a);
            });
            0 < r || b(e);
        };
        n.block = function() {
            r++;
        };
        n.unblock = function() {
            r = Math.max(r - 1, 0);
            0 == r && h(c, function(a) {
                b(a);
            });
        };
        f.clearCss = function(a) {
            h(d, function(b) {
                0 <= b.indexOf(a) && delete d[b];
            });
            h(c, function(d) {
                0 <= d.indexOf(a) && b(d);
            });
        };
        f.transform = function(b, a) {
            var d = "-transform", c;
            a = a ? a : "";
            "string" == typeof b ? (c = {}, c["-webkit" + d] = a, c["-ms" + d] = a, c["-moz" + d] = a, 
            c["-o" + d] = a, f.css(b, c)) : (d = "Transform", c = b.style, c["webkit" + d] = a, 
            c["Moz" + d] = a, c["ms" + d] = a, c["O" + d] = a);
        };
        f.dragStyle = function(b, a) {
            f.css(b, {
                "-webkit-user-select": a,
                "-moz-user-select": a,
                "-ms-user-select": a,
                "-webkit-user-drag": a,
                "user-select": a,
                "user-drag": a
            });
        };
        f.transitionStyle = function(b, a) {
            navigator.userAgent.match(/5\.\d(\.\d)? safari/i) || f.css(b, {
                "-webkit-transition": a,
                "-moz-transition": a,
                "-o-transition": a
            });
        };
        f.rotate = function(b, a) {
            f.transform(b, "rotate(" + a + "deg)");
        };
        n(".jwplayer " + " div span a img ul li video".split(" ").join(",.jwplayer ") + ", .jwclick", {
            margin: 0,
            padding: 0,
            border: 0,
            color: "#000000",
            "font-size": "100%",
            font: "inherit",
            "vertical-align": "baseline",
            "background-color": "transparent",
            "text-align": "left",
            direction: "ltr"
        });
        n(".jwplayer ul", {
            "list-style": "none"
        });
    })(jwplayer.utils);
    (function(f) {
        f.scale = function(b, e, c, a, d) {
            var g = f.exists;
            g(e) || (e = 1);
            g(c) || (c = 1);
            g(a) || (a = 0);
            g(d) || (d = 0);
            f.transform(b, 1 == e && 1 == c && 0 == a && 0 == d ? "" : "scale(" + e + "," + c + ") translate(" + a + "px," + d + "px)");
        };
        f.stretch = function(b, e, c, a, d, r) {
            if (e && (b || (b = g.UNIFORM), c && a && d && r)) {
                var j = c / d, h = a / r, q = "video" == e.tagName.toLowerCase(), A = !1, n;
                q && f.transform(e);
                n = "jw" + b.toLowerCase();
                switch (b.toLowerCase()) {
                  case g.FILL:
                    j > h ? (d *= j, r *= j) : (d *= h, r *= h);

                  case g.NONE:
                    j = h = 1;

                  case g.EXACTFIT:
                    A = !0;
                    break;

                  default:
                    j > h ? .95 < d * h / c ? (A = !0, n = "jwexactfit") : (d *= h, r *= h) : .95 < r * j / a ? (A = !0, 
                    n = "jwexactfit") : (d *= j, r *= j), A && (h = Math.ceil(100 * a / r) / 100, j = Math.ceil(100 * c / d) / 100);
                }
                q ? A ? (e.style.width = d + "px", e.style.height = r + "px", f.scale(e, j, h, (c - d) / 2 / j, (a - r) / 2 / h)) : (e.style.width = "", 
                e.style.height = "") : (e.className = e.className.replace(/\s*jw(none|exactfit|uniform|fill)/g, ""), 
                e.className += " " + n);
            }
        };
        var g = f.stretching = {
            NONE: "none",
            FILL: "fill",
            UNIFORM: "uniform",
            EXACTFIT: "exactfit"
        };
    })(jwplayer.utils);
    (function(f) {
        f.dfxp = function(g, b) {
            var e, c, a = jwplayer.utils.seconds;
            this.load = function(a) {
                c = a;
                try {
                    e.open("GET", a, !0), e.send(null);
                } catch (g) {
                    b("Error loading DFXP File: " + a);
                }
            };
            e = new XMLHttpRequest();
            e.onreadystatechange = function() {
                if (4 === e.readyState) if (200 === e.status) {
                    for (var d = e.responseText, r = [ {
                        begin: 0,
                        text: ""
                    } ], d = d.replace(/^\s+/, "").replace(/\s+$/, ""), j = d.split("</p>"), h = d.split("</tt:p>"), q = [], d = 0; d < j.length; d++) 0 <= j[d].indexOf("<p") && (j[d] = j[d].substr(j[d].indexOf("<p") + 2).replace(/^\s+/, "").replace(/\s+$/, ""), 
                    q.push(j[d]));
                    for (d = 0; d < h.length; d++) 0 <= h[d].indexOf("<tt:p") && (h[d] = h[d].substr(h[d].indexOf("<tt:p") + 5).replace(/^\s+/, "").replace(/\s+$/, ""), 
                    q.push(h[d]));
                    j = q;
                    for (d = 0; d < j.length; d++) {
                        h = j[d];
                        q = {};
                        try {
                            var f = h.indexOf('begin="'), h = h.substr(f + 7), f = h.indexOf('" end="');
                            q.begin = a(h.substr(0, f));
                            h = h.substr(f + 7);
                            f = h.indexOf('"');
                            q.end = a(h.substr(0, f));
                            f = h.indexOf('">');
                            h = h.substr(f + 2);
                            q.text = h;
                        } catch (n) {}
                        h = q;
                        h.text && (r.push(h), h.end && (r.push({
                            begin: h.end,
                            text: ""
                        }), delete h.end));
                    }
                    1 < r.length ? g(r) : b("Invalid DFXP file: " + c);
                } else r = e.status, 0 == r ? b("Crossdomain loading denied: " + c) : 404 == r ? b("DFXP File not found: " + c) : b("Error " + r + " loading DFXP file: " + c);
            };
        };
    })(jwplayer.parsers);
    (function(f) {
        f.srt = function(g, b, e) {
            function c(a) {
                0 == a ? b("Crossdomain loading denied: " + r) : 404 == a ? b("SRT File not found: " + r) : b("Error " + a + " loading SRT file: " + r);
            }
            function a(a) {
                var d = e ? [] : [ {
                    begin: 0,
                    text: ""
                } ];
                a = a.replace(/^\s+/, "").replace(/\s+$/, "");
                var c = a.split("\r\n\r\n");
                1 == c.length && (c = a.split("\n\n"));
                for (a = 0; a < c.length; a++) if ("WEBVTT" != c[a]) {
                    var j, k = c[a];
                    j = {};
                    var p = k.split("\r\n");
                    1 == p.length && (p = k.split("\n"));
                    try {
                        k = 1;
                        0 < p[0].indexOf(" --> ") && (k = 0);
                        var l = p[k].indexOf(" --> ");
                        0 < l && (j.begin = h(p[k].substr(0, l)), j.end = h(p[k].substr(l + 5)));
                        if (p[k + 1]) {
                            j.text = p[k + 1];
                            for (k += 2; k < p.length; k++) j.text += "<br/>" + p[k];
                        }
                    } catch (f) {}
                    j.text && (d.push(j), j.end && !e && (d.push({
                        begin: j.end,
                        text: ""
                    }), delete j.end));
                }
                1 < d.length ? g(d) : b("Invalid SRT file: " + r);
            }
            var d, r, j = jwplayer.utils, h = j.seconds;
            this.load = function(g) {
                r = g;
                try {
                    var e;
                    e = g && 0 <= g.indexOf("://") && g.split("/")[2] != window.location.href.split("/")[2] ? !0 : !1;
                    e && j.exists(window.XDomainRequest) && (d = new XDomainRequest(), d.onload = function() {
                        a(d.responseText);
                    }, d.onerror = function() {
                        c(d.status);
                    });
                    d.open("GET", g, !0);
                    d.send(null);
                } catch (h) {
                    b("Error loading SRT File: " + g);
                }
            };
            d = new XMLHttpRequest();
            d.onreadystatechange = function() {
                4 === d.readyState && (200 === d.status ? a(d.responseText) : c(d.status));
            };
        };
    })(jwplayer.parsers);
    (function(f) {
        var g = jwplayer.utils, b = jwplayer.events, e = b.state, c = jwplayer.parsers, a = g.css, d = "playing", r = document;
        f.captions = function(a, h) {
            function q(a) {
                g.log("CAPTIONS(" + a + ")");
            }
            function f(a) {
                (G = a.fullscreen) ? (n(), setTimeout(n, 500)) : l(!0);
            }
            function n() {
                var a = D.offsetHeight, b = D.offsetWidth;
                0 != a && 0 != b && s.resize(b, Math.round(.94 * a));
            }
            function y(a) {
                a = a.responseXML.firstChild;
                "xml" == c.localName(a) && (a = a.nextSibling);
                for (;a.nodeType == a.COMMENT_NODE; ) a = a.nextSibling;
                ("tt" == c.localName(a) ? new jwplayer.parsers.dfxp(p, q) : new jwplayer.parsers.srt(p, q)).load(C);
            }
            function k() {
                new jwplayer.parsers.srt(p, q).load(C);
            }
            function p(a) {
                s.populate(a);
                z < u.length && (u[z].data = a);
                l(!1);
            }
            function l(a) {
                u.length ? v == d && 0 < B ? (s.show(), G ? f({
                    fullscreen: !0
                }) : (I(), a && setTimeout(I, 500))) : s.hide() : s.hide();
            }
            function I() {
                s.resize();
            }
            function t(a) {
                0 < a ? (z = a - 1, B = a) : B = 0;
                z >= u.length || (u[z].data ? s.populate(u[z].data) : (C = a = u[z].file, g.ajax(a, y, k)), 
                l(!1));
            }
            function w() {
                var a = [];
                a.push({
                    label: "Off"
                });
                for (var b = 0; b < u.length; b++) a.push({
                    label: u[b].label
                });
                return a;
            }
            var D, x = {
                back: !0,
                color: "#FFFFFF",
                fontSize: 15
            }, m = {
                fontFamily: "Arial,sans-serif",
                fontStyle: "normal",
                fontWeight: "normal",
                textDecoration: "none"
            }, s, v, z, u = [], B = 0, G = !1, C, M = new b.eventdispatcher();
            g.extend(this, M);
            this.element = function() {
                return D;
            };
            this.getCaptionsList = function() {
                return w();
            };
            this.getCurrentCaptions = function() {
                return B;
            };
            this.setCurrentCaptions = function(a) {
                if (0 <= a && B != a && a <= u.length) {
                    t(a);
                    a = w();
                    g.saveCookie("captionLabel", a[B].label);
                    var c = b.JWPLAYER_CAPTIONS_CHANGED;
                    M.sendEvent(c, {
                        type: c,
                        tracks: a,
                        track: B
                    });
                }
            };
            D = r.createElement("div");
            D.id = a.id + "_caption";
            D.className = "jwcaptions";
            a.jwAddEventListener(b.JWPLAYER_PLAYER_STATE, function(a) {
                switch (a.newstate) {
                  case e.IDLE:
                    v = "idle";
                    l(!1);
                    break;

                  case e.PLAYING:
                    v = d, l(!1);
                }
            });
            a.jwAddEventListener(b.JWPLAYER_PLAYLIST_ITEM, function() {
                z = 0;
                u = [];
                s.update(0);
                for (var c = a.jwGetPlaylist()[a.jwGetPlaylistIndex()].tracks, d = [], e = 0, k = "", m = 0, k = "", e = 0; e < c.length; e++) k = c[e].kind.toLowerCase(), 
                ("captions" == k || "subtitles" == k) && d.push(c[e]);
                for (e = B = 0; e < d.length; e++) if (k = d[e].file) d[e].label || (d[e].label = e.toString()), 
                u.push(d[e]);
                for (e = 0; e < u.length; e++) if (u[e]["default"]) {
                    m = e + 1;
                    break;
                }
                if (k = g.getCookies().captionLabel) {
                    c = w();
                    for (e = 0; e < c.length; e++) if (k == c[e].label) {
                        m = e;
                        break;
                    }
                }
                t(m);
                l(!1);
                c = b.JWPLAYER_CAPTIONS_LIST;
                d = w();
                M.sendEvent(c, {
                    type: c,
                    tracks: d,
                    track: B
                });
            });
            a.jwAddEventListener(b.JWPLAYER_MEDIA_ERROR, q);
            a.jwAddEventListener(b.JWPLAYER_ERROR, q);
            a.jwAddEventListener(b.JWPLAYER_READY, function() {
                g.foreach(x, function(a, b) {
                    h && void 0 != h[a.toLowerCase()] ? "color" == a ? m.color = "#" + String(h.color).substr(-6) : m[a] = h[a.toLowerCase()] : m[a] = b;
                });
                s = new jwplayer.html5.captions.renderer(m, D);
                l(!1);
            });
            a.jwAddEventListener(b.JWPLAYER_MEDIA_TIME, function(a) {
                s.update(a.position);
            });
            a.jwAddEventListener(b.JWPLAYER_FULLSCREEN, f);
            a.jwAddEventListener(b.JWPLAYER_RESIZE, function() {
                l(!1);
            });
        };
        a(".jwcaptions", {
            position: "absolute",
            cursor: "pointer",
            width: "100%",
            height: "100%",
            overflow: "hidden"
        });
    })(jwplayer.html5);
    (function(f) {
        var g = jwplayer.utils.foreach;
        f.captions.renderer = function(b, e) {
            function c(b) {
                r(h, {
                    visibility: "hidden"
                });
                q.innerHTML = b;
                y = "" == b ? "hidden" : "visible";
                setTimeout(a, 20);
            }
            function a() {
                var a = h.clientWidth, c = Math.round(b.fontSize * Math.pow(a / 400, .6)), d = Math.round(1.4 * c);
                r(q, {
                    maxWidth: a + "px",
                    fontSize: c + "px",
                    lineHeight: d + "px",
                    visibility: y
                });
            }
            function d() {
                for (var a = -1, b = 0; b < j.length; b++) if (j[b].begin <= n && (b == j.length - 1 || j[b + 1].begin >= n)) {
                    a = b;
                    break;
                }
                -1 == a ? c("") : a != f && (f = a, c(j[b].text));
            }
            function r(a, b) {
                g(b, function(b, c) {
                    a.style[b] = c;
                });
            }
            var j, h, q, f, n, y = "visible", k;
            this.hide = function() {
                r(h, {
                    display: "none"
                });
                k && (clearInterval(k), k = null);
            };
            this.populate = function(a) {
                f = -1;
                j = a;
                d();
            };
            this.resize = function() {
                a();
            };
            h = document.createElement("div");
            q = document.createElement("span");
            h.appendChild(q);
            e.appendChild(h);
            r(h, {
                display: "block",
                height: "auto",
                position: "absolute",
                bottom: "20px",
                textAlign: "center",
                width: "100%"
            });
            r(q, {
                color: "#" + b.color.substr(-6),
                display: "inline-block",
                fontFamily: b.fontFamily,
                fontStyle: b.fontStyle,
                fontWeight: b.fontWeight,
                height: "auto",
                margin: "auto",
                position: "relative",
                textAlign: "center",
                textDecoration: b.textDecoration,
                wordWrap: "break-word",
                width: "auto"
            });
            b.back ? r(q, {
                background: "#000"
            }) : r(q, {
                textShadow: "-2px 0px 1px #000,2px 0px 1px #000,0px -2px 1px #000,0px 2px 1px #000,-1px 1px 1px #000,1px 1px 1px #000,1px -1px 1px #000,1px 1px 1px #000"
            });
            this.show = function() {
                r(h, {
                    display: "block"
                });
                k || (k = setInterval(a, 250));
                a();
            };
            this.update = function(a) {
                n = a;
                j && d();
            };
        };
    })(jwplayer.html5);
    (function(f) {
        var g = f.html5, b = f.utils, e = f.events, c = e.state, a = b.css;
        f = b.transitionStyle;
        var d = b.isMobile(), r = b.isAndroid(4) && !b.isChrome(), j = "button", h = "text", q = "slider", A = "100%", n = {
            display: "none"
        }, y = {
            display: "block"
        }, k = {
            display: t
        }, p = !1, l = !0, I = null, t = void 0, w = window, D = document;
        g.controlbar = function(f, m) {
            function s(a, b, c) {
                return {
                    name: a,
                    type: b,
                    className: c
                };
            }
            function v(a) {
                var c = p, e;
                a.duration == Number.POSITIVE_INFINITY || !a.duration && b.isSafari() && !d ? $.setText(H.jwGetPlaylist()[H.jwGetPlaylistIndex()].title || "Live broadcast") : (L.elapsed && (e = b.timeFormat(a.position), 
                L.elapsed.innerHTML = e, c = e.length != b.timeFormat(La).length), L.duration && (e = b.timeFormat(a.duration), 
                L.duration.innerHTML = e, c = c || e.length != b.timeFormat(ua).length), 0 < a.duration ? V(a.position / a.duration) : V(0), 
                ua = a.duration, La = a.position, $.setText());
                c && Aa();
            }
            function z() {
                var a = H.jwGetMute();
                Q("mute", a);
                R(a ? 0 : Ma);
            }
            function u() {
                Ma = H.jwGetVolume() / 100;
                R(Ma);
            }
            function B() {
                a(F(".jwhd"), n);
                a(F(".jwcc"), n);
                Da();
                Aa();
            }
            function G(a) {
                Na = a.currentQuality;
                ia && 0 <= Na && ia.setActive(a.currentQuality);
            }
            function C(a) {
                na && (Qa = a.track, ja && 0 <= Qa && ja.setActive(a.track));
            }
            function M() {
                W = b.extend({}, Ea, oa.getComponentSettings("controlbar"), m);
                wa = N("background").height;
                a("#" + ea, {
                    height: wa,
                    bottom: pa ? 0 : W.margin
                });
                a(F(".jwtext"), {
                    font: W.fontsize + "px/" + N("background").height + "px " + W.font,
                    color: W.fontcolor,
                    "font-weight": W.fontweight
                });
                a(F(".jwoverlay"), {
                    bottom: wa
                });
                0 < W.maxwidth && a(F(), {
                    "max-width": pa ? t : W.maxwidth
                });
            }
            function F(a) {
                return "#" + ea + (a ? " " + a : "");
            }
            function P() {
                return D.createElement("span");
            }
            function E(c, d, e, g, k) {
                var m = P(), j = N(c);
                g = g ? " left center" : " center";
                var h = Y(j);
                m.className = "jw" + c;
                m.innerHTML = "&nbsp;";
                if (j && "" != j.src) return e = e ? {
                    background: "url('" + j.src + "') repeat-x " + g,
                    "background-size": h,
                    height: k ? j.height : t
                } : {
                    background: "url('" + j.src + "') no-repeat" + g,
                    "background-size": h,
                    width: j.width,
                    height: k ? j.height : t
                }, m.skin = j, a(F((k ? ".jwvertical " : "") + ".jw" + c), b.extend(e, d)), L[c] = m;
            }
            function O(b, c, e) {
                c && c.src && (a(b, {
                    width: c.width,
                    background: "url(" + c.src + ") no-repeat center",
                    "background-size": Y(c)
                }), e.src && !d && a(b + ":hover", {
                    background: "url(" + e.src + ") no-repeat center",
                    "background-size": Y(e)
                }));
            }
            function U(a) {
                return function(b) {
                    fb[a] && (fb[a](), d && Fa.sendEvent(e.JWPLAYER_USER_ACTION));
                    b.preventDefault && b.preventDefault();
                };
            }
            function J(a) {
                b.foreach(Ra, function(b, c) {
                    b != a && ("cc" == b && (clearTimeout(xa), xa = t), "hd" == b && (clearTimeout(ya), 
                    ya = t), c.hide());
                });
            }
            function Z() {
                pa || (Ga.show(), J("volume"));
            }
            function Q(a, c) {
                b.exists(c) || (c = !Sa[a]);
                L[a] && (L[a].className = "jw" + a + (c ? " jwtoggle jwtoggling" : " jwtoggling"), 
                setTimeout(function() {
                    L[a].className = L[a].className.replace(" jwtoggling", "");
                }, 100));
                Sa[a] = c;
            }
            function Y(a) {
                return a ? parseInt(a.width) + "px " + parseInt(a.height) + "px" : "0 0";
            }
            function da() {
                fa && 1 < fa.length && (Za && (clearTimeout(Za), Za = t), ia.show(), J("hd"));
            }
            function aa() {
                na && 1 < na.length && ($a && (clearTimeout($a), $a = t), ja.show(), J("cc"));
            }
            function ga(a) {
                0 <= a && a < fa.length && (H.jwSetCurrentQuality(a), clearTimeout(ya), ya = t, 
                ia.hide());
            }
            function ka(a) {
                0 <= a && a < na.length && (H.jwSetCurrentCaptions(a), clearTimeout(xa), xa = t, 
                ja.hide());
            }
            function la(a) {
                a.preventDefault();
                D.onselectstart = function() {
                    return p;
                };
            }
            function ab() {
                L.timeRail.className = "jwrail";
                H.jwGetState() != c.IDLE && (H.jwSeekDrag(l), ha = "time", T(), Fa.sendEvent(e.JWPLAYER_USER_ACTION));
            }
            function qa(a) {
                if (ha) {
                    var c = new Date().getTime();
                    50 < c - bb && (ra(a), bb = c);
                    var d = L[ha].getElementsByClassName("jwrail")[0], d = b.bounds(d), d = a.x / d.width;
                    100 < d && (d = 100);
                    a.type == b.touchEvents.DRAG_END ? (H.jwSeekDrag(p), L.timeRail.className = "jwrail jwsmooth", 
                    ha = I, Ta.time(d), va()) : (V(d), 500 < c - cb && (cb = c, Ta.time(d)));
                    Fa.sendEvent(e.JWPLAYER_USER_ACTION);
                }
            }
            function Oa(a) {
                var d = L.time.getElementsByClassName("jwrail")[0], d = b.bounds(d);
                a = a.x / d.width;
                100 < a && (a = 100);
                H.jwGetState() != c.IDLE && (Ta.time(a), Fa.sendEvent(e.JWPLAYER_USER_ACTION));
            }
            function X(a) {
                return function(b) {
                    0 == b.button && (L[a + "Rail"].className = "jwrail", "time" == a ? H.jwGetState() != c.IDLE && (H.jwSeekDrag(l), 
                    ha = a) : ha = a);
                };
            }
            function K(a) {
                var c = new Date().getTime();
                50 < c - bb && (ra(a), bb = c);
                if (ha && 0 == a.button) {
                    var d = L[ha].getElementsByClassName("jwrail")[0], e = b.bounds(d), d = ha, e = L[d].vertical ? (e.bottom - a.pageY) / e.height : (a.pageX - e.left) / e.width;
                    "mouseup" == a.type ? ("time" == d && H.jwSeekDrag(p), L[d + "Rail"].className = "jwrail jwsmooth", 
                    ha = I, Ta[d.replace("H", "")](e)) : ("time" == ha ? V(e) : R(e), 500 < c - cb && (cb = c, 
                    Ta[ha.replace("H", "")](e)));
                    return !1;
                }
            }
            function T() {
                sa && ua && !pa && !d && (Ha(sa), sa.show());
            }
            function va() {
                sa && sa.hide();
            }
            function ra(a) {
                if ((Ua = b.bounds(gb)) && 0 != Ua.width) {
                    var c = sa.element();
                    a = a.pageX ? a.pageX - Ua.left - w.pageXOffset : a.x;
                    0 <= a && a <= Ua.width && (c.style.left = Math.round(a) + "px", Va(ua * a / Ua.width), 
                    ca = b.bounds(S));
                }
            }
            function Va(a) {
                db.innerHTML = b.timeFormat(a);
                Wa.updateTimeline(a);
                sa.setContents(Xa);
                ca = b.bounds(S);
                Ha(sa);
            }
            function Ya() {
                $a = setTimeout(ja.hide, 500);
            }
            function ma() {
                Za = setTimeout(ia.hide, 500);
            }
            function Ia(b, c, e, g) {
                if (!d) {
                    var k = b.element();
                    c.appendChild(k);
                    c.addEventListener("mousemove", e, p);
                    g ? c.addEventListener("mouseout", g, p) : c.addEventListener("mouseout", b.hide, p);
                    a("#" + k.id, {
                        left: "50%"
                    });
                }
            }
            function ba(c, g, k, j) {
                if (d) {
                    var m = c.element();
                    g.appendChild(m);
                    new b.touch(g).addEventListener(b.touchEvents.TAP, function() {
                        "cc" == j ? (xa ? (clearTimeout(xa), xa = t, c.hide()) : (xa = setTimeout(function() {
                            c.hide();
                            xa = t;
                        }, 4e3), k()), Fa.sendEvent(e.JWPLAYER_USER_ACTION)) : "hd" == j && (ya ? (clearTimeout(ya), 
                        ya = t, c.hide()) : (ya = setTimeout(function() {
                            c.hide();
                            ya = t;
                        }, 4e3), k()), Fa.sendEvent(e.JWPLAYER_USER_ACTION));
                    });
                    a("#" + m.id, {
                        left: "50%"
                    });
                }
            }
            function ta(c) {
                var e = P();
                e.className = "jwgroup jw" + c;
                Ja[c] = e;
                if (Ba[c]) {
                    var e = Ba[c], k = Ja[c];
                    if (e && 0 < e.elements.length) for (var m = 0; m < e.elements.length; m++) {
                        var f;
                        a: {
                            f = e.elements[m];
                            var C = c;
                            switch (f.type) {
                              case h:
                                C = void 0;
                                f = f.name;
                                var C = {}, s = N(("alt" == f ? "elapsed" : f) + "Background");
                                if (s.src) {
                                    var l = P();
                                    l.id = ea + "_" + f;
                                    l.className = "elapsed" == f || "duration" == f ? "jwtext jw" + f + " jwhidden" : "jwtext jw" + f;
                                    C.background = "url(" + s.src + ") repeat-x center";
                                    C["background-size"] = Y(N("background"));
                                    a(F(".jw" + f), C);
                                    "alt" != f ? l.innerHTML = "00:00" : l.innerHTML = "";
                                    C = L[f] = l;
                                } else C = null;
                                f = C;
                                break a;

                              case j:
                                if ("blank" != f.name) {
                                    f = f.name;
                                    s = C;
                                    if (!N(f + "Button").src || d && ("mute" == f || 0 == f.indexOf("volume")) || r && /hd|cc/.test(f)) f = I; else {
                                        var C = P(), l = P(), J = void 0, J = za, v = E(J.name);
                                        v || (v = P(), v.className = "jwblankDivider");
                                        J.className && (v.className += " " + J.className);
                                        J = v;
                                        v = D.createElement("button");
                                        C.style += " display:inline-block";
                                        C.className = "jw" + f + " jwbuttoncontainer";
                                        "left" == s ? (C.appendChild(l), C.appendChild(J)) : (C.appendChild(J), C.appendChild(l));
                                        d ? "hd" != f && "cc" != f && new b.touch(v).addEventListener(b.touchEvents.TAP, U(f)) : v.addEventListener("click", U(f), p);
                                        v.innerHTML = "&nbsp;";
                                        l.appendChild(v);
                                        s = N(f + "Button");
                                        l = N(f + "ButtonOver");
                                        O(F(".jw" + f + " button"), s, l);
                                        (s = mb[f]) && O(F(".jw" + f + ".jwtoggle button"), N(s + "Button"), N(s + "ButtonOver"));
                                        f = L[f] = C;
                                    }
                                    break a;
                                }
                                break;

                              case q:
                                C = void 0;
                                J = f.name;
                                if (d && 0 == J.indexOf("volume")) C = void 0; else {
                                    f = P();
                                    var l = "volume" == J, y = J + ("time" == J ? "Slider" : "") + "Cap", s = l ? "Top" : "Left", C = l ? "Bottom" : "Right", v = E(y + s, I, p, p, l), x = E(y + C, I, p, p, l), z;
                                    z = J;
                                    var u = l, B = s, ka = C, w = P(), G = [ "Rail", "Buffer", "Progress" ], la = void 0;
                                    w.className = "jwrail jwsmooth";
                                    for (var M = 0; M < G.length; M++) {
                                        var Q = "time" == z ? "Slider" : "", H = z + Q + G[M], ca = E(H, I, !u, 0 == z.indexOf("volume"), u), K = E(H + "Cap" + B, I, p, p, u), ga = E(H + "Cap" + ka, I, p, p, u), Z = N(H + "Cap" + B), S = N(H + "Cap" + ka);
                                        if (ca) {
                                            var R = P();
                                            R.className = "jwrailgroup " + G[M];
                                            K && R.appendChild(K);
                                            R.appendChild(ca);
                                            ga && (R.appendChild(ga), ga.className += " jwcap" + (u ? "Bottom" : "Right"));
                                            a(F(".jwrailgroup." + G[M]), {
                                                "min-width": u ? t : Z.width + S.width
                                            });
                                            R.capSize = u ? Z.height + S.height : Z.width + S.width;
                                            a(F("." + ca.className), {
                                                left: u ? t : Z.width,
                                                right: u ? t : S.width,
                                                top: u ? Z.height : t,
                                                bottom: u ? S.height : t,
                                                height: u ? "auto" : t
                                            });
                                            2 == M && (la = R);
                                            2 == M && !u ? (ca = P(), ca.className = "jwprogressOverflow", ca.appendChild(R), 
                                            L[H] = ca, w.appendChild(ca)) : (L[H] = R, w.appendChild(R));
                                        }
                                    }
                                    if (B = E(z + Q + "Thumb", I, p, p, u)) a(F("." + B.className), {
                                        opacity: "time" == z ? 0 : 1,
                                        "margin-top": u ? B.skin.height / -2 : t
                                    }), B.className += " jwthumb", (u && la ? la : w).appendChild(B);
                                    d ? (u = new b.touch(w), u.addEventListener(b.touchEvents.DRAG_START, ab), u.addEventListener(b.touchEvents.DRAG, qa), 
                                    u.addEventListener(b.touchEvents.DRAG_END, qa), u.addEventListener(b.touchEvents.TAP, Oa)) : (la = z, 
                                    "volume" == la && !u && (la += "H"), w.addEventListener("mousedown", X(la), p));
                                    "time" == z && !d && (w.addEventListener("mousemove", T, p), w.addEventListener("mouseout", va, p));
                                    z = L[z + "Rail"] = w;
                                    w = N(y + s);
                                    y = N(y + s);
                                    N(J + "SliderRail");
                                    f.className = "jwslider jw" + J;
                                    v && f.appendChild(v);
                                    f.appendChild(z);
                                    x && (l && (x.className += " jwcapBottom"), f.appendChild(x));
                                    a(F(".jw" + J + " .jwrail"), {
                                        left: l ? t : w.width,
                                        right: l ? t : y.width,
                                        top: l ? w.height : t,
                                        bottom: l ? y.height : t,
                                        width: l ? A : t,
                                        height: l ? "auto" : t
                                    });
                                    L[J] = f;
                                    f.vertical = l;
                                    "time" == J ? (sa = new g.overlay(ea + "_timetooltip", oa), Wa = new g.thumbs(ea + "_thumb"), 
                                    db = D.createElement("div"), db.className = "jwoverlaytext", Xa = D.createElement("div"), 
                                    C = Wa.element(), Xa.appendChild(C), Xa.appendChild(db), sa.setContents(Xa), gb = z, 
                                    Va(0), C = sa.element(), z.appendChild(C), L.timeSliderRail || a(F(".jwtime"), n), 
                                    L.timeSliderThumb && a(F(".jwtimeSliderThumb"), {
                                        "margin-left": N("timeSliderThumb").width / -2
                                    }), Ca(0), V(0), V(0), Ca(0)) : 0 == J.indexOf("volume") && (J = f, v = "volume" + (l ? "" : "H"), 
                                    x = l ? "vertical" : "horizontal", a(F(".jw" + v + ".jw" + x), {
                                        width: N(v + "Rail", l).width + (l ? 0 : N(v + "Cap" + s).width + N(v + "RailCap" + s).width + N(v + "RailCap" + C).width + N(v + "Cap" + C).width),
                                        height: l ? N(v + "Cap" + s).height + N(v + "Rail").height + N(v + "RailCap" + s).height + N(v + "RailCap" + C).height + N(v + "Cap" + C).height : t
                                    }), J.className += " jw" + x);
                                    C = f;
                                }
                                f = C;
                                break a;
                            }
                            f = void 0;
                        }
                        f && ("volume" == e.elements[m].name && f.vertical ? (Ga = new g.overlay(ea + "_volumeOverlay", oa), 
                        Ga.setContents(f)) : k.appendChild(f));
                    }
                }
            }
            function Da() {
                1 < H.jwGetPlaylist().length && (!D.querySelector("#" + H.id + " .jwplaylist") || H.jwGetFullscreen()) ? (a(F(".jwnext"), k), 
                a(F(".jwprev"), k)) : (a(F(".jwnext"), n), a(F(".jwprev"), n));
            }
            function Ha(a) {
                ca || (ca = b.bounds(S));
                a.offsetX(0);
                var c = b.bounds(a.element());
                c.right > ca.right ? a.offsetX(ca.right - c.right) : c.left < ca.left && a.offsetX(ca.left - c.left);
            }
            function Ca(a) {
                a = Math.min(Math.max(0, a), 1);
                L.timeSliderBuffer && (L.timeSliderBuffer.style.width = 100 * a + "%", L.timeSliderBuffer.style.opacity = 0 < a ? 1 : 0);
            }
            function Ka(a, b) {
                if (L[a]) {
                    var c = L[a].vertical, d = a + ("time" == a ? "Slider" : ""), e = 100 * Math.min(Math.max(0, b), 1) + "%", g = L[d + "Progress"], d = L[d + "Thumb"];
                    g && (c ? (g.style.height = e, g.style.bottom = 0) : g.style.width = e, g.style.opacity = 0 < b || ha ? 1 : 0);
                    d && (c ? d.style.top = 0 : d.style.left = e);
                }
            }
            function R(a) {
                Ka("volume", a);
                Ka("volumeH", a);
            }
            function V(a) {
                Ka("time", a);
            }
            function N(a) {
                var b = "controlbar", c = a;
                0 == a.indexOf("volume") && (0 == a.indexOf("volumeH") ? c = a.replace("volumeH", "volume") : b = "tooltip");
                return (a = oa.getSkinElement(b, c)) ? a : {
                    width: 0,
                    height: 0,
                    src: "",
                    image: t,
                    ready: p
                };
            }
            var H, oa, za = s("divider", "divider"), Ea = {
                margin: 8,
                maxwidth: 800,
                font: "Arial,sans-serif",
                fontsize: 11,
                fontcolor: 15658734,
                fontweight: "bold",
                layout: {
                    left: {
                        position: "left",
                        elements: [ s("play", j), s("prev", j), s("next", j), s("elapsed", h) ]
                    },
                    center: {
                        position: "center",
                        elements: [ s("time", q), s("alt", h) ]
                    },
                    right: {
                        position: "right",
                        elements: [ s("duration", h), s("hd", j), s("cc", j), s("mute", j), s("volume", q), s("volumeH", q), s("fullscreen", j) ]
                    }
                }
            }, W, Ba, L, wa, S, ea, ua, La, fa, Na, na, Qa, Ma, Ga, ca, gb, Ua, sa, Xa, Wa, db, Za, ya, ia, $a, xa, ja, hb, Pa, pa = p, eb = p, ha = p, cb = 0, ib = -1, bb = 0, Fa = new e.eventdispatcher(), mb = {
                play: "pause",
                mute: "unmute",
                fullscreen: "normalscreen"
            }, Sa = {
                play: p,
                mute: p,
                fullscreen: p
            }, fb = {
                play: function() {
                    Sa.play ? H.jwPause() : H.jwPlay();
                },
                mute: function() {
                    H.jwSetMute(!Sa.mute);
                    z({
                        mute: Sa.mute
                    });
                },
                fullscreen: function() {
                    H.jwSetFullscreen();
                },
                next: function() {
                    H.jwPlaylistNext();
                },
                prev: function() {
                    H.jwPlaylistPrev();
                }
            }, Ta = {
                time: function(a) {
                    H.jwSeek(a * ua);
                },
                volume: function(a) {
                    R(a);
                    .1 > a && (a = 0);
                    .9 < a && (a = 1);
                    H.jwSetVolume(100 * a);
                }
            }, Ra = {}, $ = this;
            b.extend($, Fa);
            $.setText = function(b) {
                a(F(".jwelapsed"), b ? n : y);
                a(F(".jwduration"), b ? n : y);
                a(F(".jwtime"), b ? n : y);
                a(F(".jwalt"), b ? y : n);
                L.timeSliderRail || a(F(".jwtime"), n);
                var c = S.querySelector(".jwalt");
                c && (c.innerHTML = b || "");
                Aa();
            };
            var Ja = {}, Aa = function() {
                clearTimeout(hb);
                hb = setTimeout($.redraw, 0);
            };
            $.redraw = function(c) {
                c && $.visible && $.show(l);
                M();
                c = N("capLeft");
                var d = N("capRight");
                a(F(".jwgroup.jwcenter"), {
                    left: Math.round(b.parseDimension(Ja.left.offsetWidth) + c.width),
                    right: Math.round(b.parseDimension(Ja.right.offsetWidth) + d.width)
                });
                c = !pa && S.parentNode.clientWidth > W.maxwidth;
                d = pa ? 0 : W.margin;
                a(F(), {
                    left: c ? "50%" : d,
                    right: c ? t : d,
                    "margin-left": c ? S.clientWidth / -2 : t,
                    width: c ? A : t
                });
                a(F(".jwfullscreen"), {
                    display: pa || eb ? "none" : t
                });
                a(F(".jwvolumeH"), {
                    display: pa ? "block" : "none"
                });
                a(F(".jwhd"), {
                    display: !pa && fa && 1 < fa.length && ia ? t : "none"
                });
                a(F(".jwcc"), {
                    display: !pa && na && 1 < na.length && ja ? t : "none"
                });
                ca = b.bounds(S);
                b.foreach(Ra, function(a, b) {
                    Ha(b);
                });
            };
            $.audioMode = function(a) {
                a != pa && (pa = a, Aa());
            };
            $.hideFullscreen = function(a) {
                a != eb && (eb = a, Aa());
            };
            $.element = function() {
                return S;
            };
            $.margin = function() {
                return parseInt(W.margin);
            };
            $.height = function() {
                return wa;
            };
            $.show = function(c) {
                if (!$.visible || c) clearTimeout(Pa), Pa = t, $.visible = !0, S.style.display = "inline-block", 
                Aa(), z(), S && S.querySelector(".jwalt") && (320 <= b.bounds(S.parentNode).width && !S.querySelector(".jwalt").innerHTML ? a(F(".jwhidden"), k) : a(F(".jwhidden"), n)), 
                Pa = setTimeout(function() {
                    S.style.opacity = 1;
                }, 10);
            };
            $.hide = function() {
                $.visible && ($.visible = !1, S.style.opacity = 0, clearTimeout(Pa), Pa = t, Pa = setTimeout(function() {
                    S.style.display = "none";
                }, 250));
            };
            L = {};
            H = f;
            ea = H.id + "_controlbar";
            ua = La = 0;
            S = P();
            S.id = ea;
            S.className = "jwcontrolbar";
            oa = H.skin;
            var nb = setInterval(function() {
                var a = D.getElementById(ea), c = b.bounds(a).width;
                a != S ? clearInterval(nb) : 0 < c && $.visible && c != ib && (ib = c, $.show(l));
            }, 200);
            Ba = oa.getComponentLayout("controlbar");
            Ba || (Ba = Ea.layout);
            b.clearCss("#" + ea);
            M();
            var jb = E("capLeft"), kb = E("capRight"), lb = E("background", {
                position: "absolute",
                left: N("capLeft").width,
                right: N("capRight").width,
                "background-repeat": "repeat-x"
            }, l);
            lb && S.appendChild(lb);
            jb && S.appendChild(jb);
            ta("left");
            ta("center");
            ta("right");
            S.appendChild(Ja.left);
            S.appendChild(Ja.center);
            S.appendChild(Ja.right);
            L.hd && (ia = new g.menu("hd", ea + "_hd", oa, ga), d ? ba(ia, L.hd, da, "hd") : Ia(ia, L.hd, da, ma), 
            Ra.hd = ia);
            L.cc && (ja = new g.menu("cc", ea + "_cc", oa, ka), d ? ba(ja, L.cc, aa, "cc") : Ia(ja, L.cc, aa, Ya), 
            Ra.cc = ja);
            L.mute && L.volume && L.volume.vertical && (Ga = new g.overlay(ea + "_volumeoverlay", oa), 
            Ga.setContents(L.volume), Ia(Ga, L.mute, Z), Ra.volume = Ga);
            a(F(".jwright"), {
                right: N("capRight").width
            });
            kb && S.appendChild(kb);
            H.jwAddEventListener(e.JWPLAYER_MEDIA_TIME, v);
            H.jwAddEventListener(e.JWPLAYER_PLAYER_STATE, function(b) {
                switch (b.newstate) {
                  case c.BUFFERING:
                  case c.PLAYING:
                    a(F(".jwtimeSliderThumb"), {
                        opacity: 1
                    });
                    Q("play", l);
                    break;

                  case c.PAUSED:
                    ha || Q("play", p);
                    break;

                  case c.IDLE:
                    Q("play", p), a(F(".jwtimeSliderThumb"), {
                        opacity: 0
                    }), L.timeRail && (L.timeRail.className = "jwrail", setTimeout(function() {
                        L.timeRail.className += " jwsmooth";
                    }, 100)), Ca(0), v({
                        position: 0,
                        duration: 0
                    });
                }
            });
            H.jwAddEventListener(e.JWPLAYER_PLAYLIST_ITEM, function(a) {
                a = H.jwGetPlaylist()[a.index].tracks;
                if ("array" == b.typeOf(a) && !d) for (var c = 0; c < a.length; c++) if (a[c].file && a[c].kind && "thumbnails" == a[c].kind.toLowerCase()) {
                    Wa.load(a[c].file);
                    return;
                }
                Wa.load();
            });
            H.jwAddEventListener(e.JWPLAYER_MEDIA_MUTE, z);
            H.jwAddEventListener(e.JWPLAYER_MEDIA_VOLUME, u);
            H.jwAddEventListener(e.JWPLAYER_MEDIA_BUFFER, function(a) {
                Ca(a.bufferPercent / 100);
            });
            H.jwAddEventListener(e.JWPLAYER_FULLSCREEN, function(a) {
                Q("fullscreen", a.fullscreen);
                Da();
            });
            H.jwAddEventListener(e.JWPLAYER_PLAYLIST_LOADED, B);
            H.jwAddEventListener(e.JWPLAYER_MEDIA_LEVELS, function(b) {
                if ((fa = b.levels) && 1 < fa.length && ia) {
                    a(F(".jwhd"), k);
                    ia.clearOptions();
                    for (var c = 0; c < fa.length; c++) ia.addOption(fa[c].label, c);
                    G(b);
                } else a(F(".jwhd"), n);
                Aa();
            });
            H.jwAddEventListener(e.JWPLAYER_MEDIA_LEVEL_CHANGED, G);
            H.jwAddEventListener(e.JWPLAYER_CAPTIONS_LIST, function(b) {
                if ((na = b.tracks) && 1 < na.length && ja) {
                    a(F(".jwcc"), k);
                    ja.clearOptions();
                    for (var c = 0; c < na.length; c++) ja.addOption(na[c].label, c);
                    C(b);
                } else a(F(".jwcc"), n);
                Aa();
            });
            H.jwAddEventListener(e.JWPLAYER_CAPTIONS_CHANGED, C);
            d || (S.addEventListener("mouseover", function() {
                w.addEventListener("mousemove", K, p);
                w.addEventListener("mouseup", K, p);
                w.addEventListener("mousedown", la, p);
            }, !1), S.addEventListener("mouseout", function() {
                w.removeEventListener("mousemove", K);
                w.removeEventListener("mouseup", K);
                w.removeEventListener("mousedown", la);
                D.onselectstart = null;
            }, !1));
            setTimeout(function() {
                u();
                z();
            }, 0);
            B();
            $.visible = !1;
        };
        a(".jwcontrolbar", {
            position: "absolute",
            opacity: 0,
            display: "none"
        });
        a(".jwcontrolbar span", {
            height: A
        });
        b.dragStyle(".jwcontrolbar span", "none");
        a(".jwcontrolbar .jwgroup", {
            display: "inline"
        });
        a(".jwcontrolbar span, .jwcontrolbar .jwgroup button,.jwcontrolbar .jwleft", {
            position: "relative",
            "float": "left"
        });
        a(".jwcontrolbar .jwright", {
            position: "absolute"
        });
        a(".jwcontrolbar .jwcenter", {
            position: "absolute"
        });
        a(".jwcontrolbar buttoncontainer,.jwcontrolbar button", {
            display: "inline-block",
            height: A,
            border: "none",
            cursor: "pointer"
        });
        a(".jwcontrolbar .jwcapRight,.jwcontrolbar .jwtimeSliderCapRight,.jwcontrolbar .jwvolumeCapRight", {
            right: 0,
            position: "absolute"
        });
        a(".jwcontrolbar .jwcapBottom", {
            bottom: 0,
            position: "absolute"
        });
        a(".jwcontrolbar .jwtime", {
            position: "absolute",
            height: A,
            width: A,
            left: 0
        });
        a(".jwcontrolbar .jwthumb", {
            position: "absolute",
            height: A,
            cursor: "pointer"
        });
        a(".jwcontrolbar .jwrail", {
            position: "absolute",
            cursor: "pointer"
        });
        a(".jwcontrolbar .jwrailgroup", {
            position: "absolute",
            width: A
        });
        a(".jwcontrolbar .jwrailgroup span", {
            position: "absolute"
        });
        a(".jwcontrolbar .jwdivider+.jwdivider", {
            display: "none"
        });
        a(".jwcontrolbar .jwtext", {
            padding: "0 5px",
            "text-align": "center"
        });
        a(".jwcontrolbar .jwalt", {
            display: "none",
            overflow: "hidden"
        });
        a(".jwcontrolbar .jwalt", {
            position: "absolute",
            left: 0,
            right: 0,
            "text-align": "left"
        }, l);
        a(".jwcontrolbar .jwoverlaytext", {
            padding: 3,
            "text-align": "center"
        });
        a(".jwcontrolbar .jwvertical *", {
            display: "block"
        });
        a(".jwcontrolbar .jwvertical .jwvolumeProgress", {
            height: "auto"
        }, l);
        a(".jwcontrolbar .jwprogressOverflow", {
            position: "absolute",
            overflow: "hidden"
        });
        a(".jwcontrolbar .jwduration .jwhidden", {});
        f(".jwcontrolbar", "opacity .25s, background .25s, visibility .25s");
        f(".jwcontrolbar button", "opacity .25s, background .25s, visibility .25s");
        f(".jwcontrolbar .jwtime .jwsmooth span", "opacity .25s, background .25s, visibility .25s, width .25s linear, left .05s linear");
        f(".jwcontrolbar .jwtoggling", "none");
    })(jwplayer);
    (function(f) {
        var g = f.utils, b = f.events, e = b.state, c = f.playlist, a = !0, d = !1;
        f.html5.controller = function(r, j) {
            function h(a) {
                x.sendEvent(a.type, a);
            }
            function q(d) {
                n(a);
                switch (g.typeOf(d)) {
                  case "string":
                    var e = new c.loader();
                    e.addEventListener(b.JWPLAYER_PLAYLIST_LOADED, function(a) {
                        q(a.playlist);
                    });
                    e.addEventListener(b.JWPLAYER_ERROR, function(a) {
                        q([]);
                        a.message = "Could not load playlist: " + a.message;
                        h(a);
                    });
                    e.load(d);
                    break;

                  case "object":
                  case "array":
                    w.setPlaylist(new f.playlist(d));
                    break;

                  case "number":
                    w.setItem(d);
                }
            }
            function A(c) {
                g.exists(c) || (c = a);
                if (!c) return y();
                try {
                    0 <= s && (q(s), s = -1);
                    if (!v && (v = a, x.sendEvent(b.JWPLAYER_MEDIA_BEFOREPLAY), v = d, B)) {
                        B = d;
                        z = null;
                        return;
                    }
                    if (w.state == e.IDLE) {
                        if (0 == w.playlist.length) return d;
                        D.load(w.playlist[w.item]);
                    } else w.state == e.PAUSED && D.play();
                    return a;
                } catch (k) {
                    x.sendEvent(b.JWPLAYER_ERROR, k), z = null;
                }
                return d;
            }
            function n(c) {
                z = null;
                try {
                    return w.state != e.IDLE ? D.stop() : c || (u = a), v && (B = a), a;
                } catch (g) {
                    x.sendEvent(b.JWPLAYER_ERROR, g);
                }
                return d;
            }
            function y(c) {
                z = null;
                g.exists(c) || (c = a);
                if (!c) return A();
                try {
                    switch (w.state) {
                      case e.PLAYING:
                      case e.BUFFERING:
                        D.pause();
                        break;

                      default:
                        v && (B = a);
                    }
                    return a;
                } catch (k) {
                    x.sendEvent(b.JWPLAYER_ERROR, k);
                }
                return d;
            }
            function k(a) {
                q(a);
                A();
            }
            function p() {
                k(w.item + 1);
            }
            function l() {
                w.state == e.IDLE && (u ? u = d : (z = l, w.repeat ? p() : w.item == w.playlist.length - 1 ? (s = 0, 
                n(a), setTimeout(function() {
                    x.sendEvent(b.JWPLAYER_PLAYLIST_COMPLETE);
                }, 0)) : p()));
            }
            function I(a) {
                return function() {
                    m ? t(a, arguments) : G.push({
                        method: a,
                        arguments: arguments
                    });
                };
            }
            function t(a, b) {
                var c = [], d;
                for (d = 0; d < b.length; d++) c.push(b[d]);
                a.apply(this, c);
            }
            var w = r, D = r.getVideo(), x = new b.eventdispatcher(w.id, w.config.debug), m = d, s = -1, v, z, u = d, B, G = [];
            g.extend(this, x);
            this.play = I(A);
            this.pause = I(y);
            this.seek = I(function(b) {
                w.state != e.PLAYING && A(a);
                D.seek(b);
            });
            this.stop = function() {
                u = a;
                I(n)();
            };
            this.load = I(q);
            this.next = I(p);
            this.prev = I(function() {
                k(w.item - 1);
            });
            this.item = I(k);
            this.setVolume = I(w.setVolume);
            this.setMute = I(w.setMute);
            this.setFullscreen = I(function(a) {
                j.fullscreen(a);
            });
            this.detachMedia = function() {
                try {
                    return w.getVideo().detachMedia();
                } catch (a) {
                    return null;
                }
            };
            this.attachMedia = function(a) {
                try {
                    w.getVideo().attachMedia(a), "function" == typeof z && z();
                } catch (b) {
                    return null;
                }
            };
            this.setCurrentQuality = I(function(a) {
                D.setCurrentQuality(a);
            });
            this.getCurrentQuality = function() {
                return D ? D.getCurrentQuality() : -1;
            };
            this.getQualityLevels = function() {
                return D ? D.getQualityLevels() : null;
            };
            this.setCurrentCaptions = I(function(a) {
                j.setCurrentCaptions(a);
            });
            this.getCurrentCaptions = function() {
                return j.getCurrentCaptions();
            };
            this.getCaptionsList = function() {
                return j.getCaptionsList();
            };
            this.checkBeforePlay = function() {
                return v;
            };
            this.playerReady = function(b) {
                if (!m) {
                    j.completeSetup();
                    x.sendEvent(b.type, b);
                    f.utils.exists(window.jwplayer.playerReady) && f.playerReady(b);
                    w.addGlobalListener(h);
                    j.addGlobalListener(h);
                    x.sendEvent(f.events.JWPLAYER_PLAYLIST_LOADED, {
                        playlist: f(w.id).getPlaylist()
                    });
                    x.sendEvent(f.events.JWPLAYER_PLAYLIST_ITEM, {
                        index: w.item
                    });
                    q();
                    w.autostart && !g.isMobile() && A();
                    for (m = a; 0 < G.length; ) b = G.shift(), t(b.method, b.arguments);
                }
            };
            w.addEventListener(b.JWPLAYER_MEDIA_BUFFER_FULL, function() {
                D.play();
            });
            w.addEventListener(b.JWPLAYER_MEDIA_COMPLETE, function() {
                setTimeout(l, 25);
            });
            w.addEventListener(b.JWPLAYER_MEDIA_ERROR, function(a) {
                a = g.extend({}, a);
                a.type = b.JWPLAYER_ERROR;
                x.sendEvent(a.type, a);
            });
        };
    })(jwplayer);
    (function(f) {
        f.html5.defaultskin = function() {
            this.text = '<?xml version="1.0" ?><skin author="LongTail Video" name="Six" target="6.0" version="2.0"><components><component name="controlbar"><settings><setting name="margin" value="8"/><setting name="fontcolor" value="eeeeee"/><setting name="fontsize" value="11"/><setting name="fontweight" value="bold"/><setting name="maxwidth" value="800"/></settings><elements><element name="background" src=""/><element name="capLeft" src=""/><element name="capRight" src=""/><element name="divider" src=""/><element name="playButton" src=""/><element name="playButtonOver" src=""/><element name="pauseButton" src=""/><element name="pauseButtonOver" src=""/><element name="prevButton" src=""/><element name="prevButtonOver" src=""/><element name="nextButton" src=""/><element name="nextButtonOver" src=""/><element name="elapsedBackground" src=""/><element name="timeSliderCapLeft" src=""/><element name="timeSliderCapRight" src=""/><element name="timeSliderRail" src=""/><element name="timeSliderRailCapLeft" src=""/><element name="timeSliderRailCapRight" src=""/><element name="timeSliderBuffer" src=""/><element name="timeSliderBufferCapLeft" src=""/><element name="timeSliderBufferCapRight" src=""/><element name="timeSliderProgress" src=""/><element name="timeSliderProgressCapLeft" src=""/><element name="timeSliderProgressCapRight" src=""/><element name="timeSliderThumb" src=""/><element name="durationBackground" src=""/><element name="hdButton" src=""/><element name="hdButtonOver" src=""/><element name="ccButton" src=""/><element name="ccButtonOver" src=""/><element name="muteButton" src=""/><element name="muteButtonOver" src=""/><element name="unmuteButton" src=""/><element name="unmuteButtonOver" src=""/><element name="fullscreenButton" src=""/><element name="fullscreenButtonOver" src=""/><element name="normalscreenButton" src=""/><element name="normalscreenButtonOver" src=""/><element name="volumeCapLeft" src=""/><element name="volumeCapRight" src=""/><element name="volumeRail" src=""/><element name="volumeRailCapLeft" src=""/><element name="volumeRailCapRight" src=""/><element name="volumeProgress" src=""/><element name="volumeProgressCapLeft" src=""/><element name="volumeProgressCapRight" src=""/><element name="volumeThumb" src=""/></elements></component><component name="display"><settings><setting name="bufferinterval" value="100"/><setting name="bufferrotation" value="45"/><setting name="fontcolor" value="cccccc"/><setting name="overcolor" value="ffffff"/><setting name="fontsize" value="15"/><setting name="fontweight" value="normal"/></settings><elements><element name="background" src=""/><element name="capLeft" src=""/><element name="capRight" src=""/><element name="bufferIcon" src=""/><element name="errorIcon" src=""/><element name="playIcon" src=""/><element name="playIconOver" src=""/><element name="replayIcon" src=""/><element name="replayIconOver" src=""/></elements></component><component name="dock"><settings><setting name="iconalpha" value="0.75"/><setting name="iconalphaactive" value="0.5"/><setting name="iconalphaover" value="1"/><setting name="margin" value="8"/></settings><elements><element name="button" src=""/><element name="buttonOver" src=""/><element name="buttonActive" src=""/><element name="divider" src=""/></elements></component><component name="playlist"><settings><setting name="activecolor" value="bfbfbf"/><setting name="backgroundcolor" value="262626"/><setting name="fontcolor" value="999999"/><setting name="fontsize" value="11"/><setting name="fontweight" value="normal"/><setting name="overcolor" value="cccccc"/><setting name="titlecolor" value="cccccc"/><setting name="titleactivecolor" value="ffffff"/><setting name="titleovercolor" value="ffffff"/><setting name="titlesize" value="13"/><setting name="titleweight" value="normal"/></settings><elements><element name="divider" src=""/><element name="item" src=""/><element name="itemActive" src=""/><element name="itemImage" src=""/><element name="sliderCapBottom" src=""/><element name="sliderCapTop" src=""/><element name="sliderRail" src=""/><element name="sliderRailCapBottom" src=""/><element name="sliderRailCapTop" src=""/><element name="sliderThumb" src=""/><element name="sliderThumbCapBottom" src=""/><element name="sliderThumbCapTop" src=""/></elements></component><component name="tooltip"><settings><setting name="fontcase" value="normal"/><setting name="fontcolor" value="cccccc"/><setting name="fontsize" value="12"/><setting name="fontweight" value="normal"/><setting name="activecolor" value="cccccc"/><setting name="overcolor" value="ffffff"/></settings><elements><element name="arrow" src=""/><element name="background" src=""/><element name="capTop" src=""/><element name="capBottom" src=""/><element name="capLeft" src=""/><element name="capRight" src=""/><element name="capTopLeft" src=""/><element name="capTopRight" src=""/><element name="capBottomLeft" src=""/><element name="capBottomRight" src=""/><element name="menuTopHD" src=""/><element name="menuTopCC" src=""/><element name="menuOption" src=""/><element name="menuOptionOver" src=""/><element name="menuOptionActive" src=""/><element name="volumeCapTop" src=""/><element name="volumeCapBottom" src=""/><element name="volumeRail" src=""/><element name="volumeRailCapBottom" src=""/><element name="volumeRailCapTop" src=""/><element name="volumeProgress" src=""/><element name="volumeProgressCapBottom" src=""/><element name="volumeProgressCapTop" src=""/><element name="volumeThumb" src=""/></elements></component></components></skin>';
            this.xml = f.utils.parseXML(this.text);
            return this;
        };
    })(jwplayer);
    (function(f) {
        var g = jwplayer.utils, b = jwplayer.events, e = b.state, c = g.css, a = g.isMobile(), d = document, r = ".jwpreview", j = !0, h = !1;
        f.display = function(q, A) {
            function n(c) {
                if (aa) aa(c); else if ((!a || !x.jwGetControls()) && da.sendEvent(b.JWPLAYER_DISPLAY_CLICK), 
                x.jwGetControls()) {
                    var d = new Date().getTime();
                    ga && 500 > d - ga ? (x.jwSetFullscreen(), ga = void 0) : ga = new Date().getTime();
                    var k = g.bounds(m.parentNode.querySelector(".jwcontrolbar")), f = g.bounds(m), d = k.left - 10 - f.left, j = k.left + 30 - f.left, l = f.bottom - 40, h = f.bottom, n = k.right - 30 - f.left, k = k.right + 10 - f.left;
                    if (a && !(c.x >= d && c.x <= j && c.y >= l && c.y <= h)) {
                        if (c.x >= n && c.x <= k && c.y >= l && c.y <= h) {
                            x.jwSetFullscreen();
                            return;
                        }
                        da.sendEvent(b.JWPLAYER_DISPLAY_CLICK);
                        if (O) return;
                    }
                    switch (x.jwGetState()) {
                      case e.PLAYING:
                      case e.BUFFERING:
                        x.jwPause();
                        break;

                      default:
                        x.jwPlay();
                    }
                }
            }
            function y(a, b) {
                Y.showicons && (a || b ? (J.setRotation("buffer" == a ? parseInt(Y.bufferrotation) : 0, parseInt(Y.bufferinterval)), 
                J.setIcon(a), J.setText(b)) : J.hide());
            }
            function k(a) {
                u != a ? (u && D(r, h), (u = a) ? (a = new Image(), a.addEventListener("load", I, h), 
                a.src = u) : (c("#" + m.id + " " + r, {
                    "background-image": void 0
                }), D(r, h), B = G = 0)) : u && !O && D(r, j);
                l(x.jwGetState());
            }
            function p(a) {
                clearTimeout(ka);
                ka = setTimeout(function() {
                    l(a.newstate);
                }, 100);
            }
            function l(a) {
                a = Z ? Z : x ? x.jwGetState() : e.IDLE;
                if (a != Q) switch (Q = a, J && J.setRotation(0), a) {
                  case e.IDLE:
                    !F && !P && (u && !C && D(r, j), a = !0, x._model && !1 === x._model.config.displaytitle && (a = !1), 
                    y("play", z && a ? z.title : ""));
                    break;

                  case e.BUFFERING:
                    F = h;
                    M.error && M.error.setText();
                    P = h;
                    y("buffer");
                    break;

                  case e.PLAYING:
                    y();
                    break;

                  case e.PAUSED:
                    y("play");
                }
            }
            function I() {
                B = this.width;
                G = this.height;
                l(x.jwGetState());
                w();
                u && c("#" + m.id + " " + r, {
                    "background-image": "url(" + u + ")"
                });
            }
            function t(a) {
                F = j;
                y("error", a.message);
            }
            function w() {
                0 < m.clientWidth * m.clientHeight && g.stretch(x.jwGetStretching(), s, m.clientWidth, m.clientHeight, B, G);
            }
            function D(a, b) {
                g.exists(E[a]) || (E[a] = !1);
                E[a] != b && (E[a] = b, c("#" + m.id + " " + a, {
                    opacity: b ? 1 : 0,
                    visibility: b ? "visible" : "hidden"
                }));
            }
            var x = q, m, s, v, z, u, B, G, C = h, M = {}, F = h, P = h, E = {}, O, U, J, Z, Q, Y = g.extend({
                showicons: j,
                bufferrotation: 45,
                bufferinterval: 100,
                fontcolor: "#ccc",
                overcolor: "#fff",
                fontsize: 15,
                fontweight: ""
            }, q.skin.getComponentSettings("display"), A), da = new b.eventdispatcher(), aa, ga;
            g.extend(this, da);
            this.clickHandler = n;
            var ka;
            this.forceState = function(a) {
                Z = a;
                l(a);
                this.show();
            };
            this.releaseState = function(a) {
                Z = null;
                l(a);
                this.show();
            };
            this.hidePreview = function(a) {
                C = a;
                D(r, !a);
                a && (O = !0);
            };
            this.setHiding = function() {
                O = !0;
            };
            this.element = function() {
                return m;
            };
            this.redraw = w;
            this.show = function(a) {
                if (J && (a || (Z ? Z : x ? x.jwGetState() : e.IDLE) != e.PLAYING)) clearTimeout(U), 
                U = void 0, m.style.display = "block", J.show(), O = !1;
            };
            this.hide = function() {
                J && (J.hide(), O = !0);
            };
            this.setAlternateClickHandler = function(a) {
                aa = a;
            };
            this.revertAlternateClickHandler = function() {
                aa = void 0;
            };
            m = d.createElement("div");
            m.id = x.id + "_display";
            m.className = "jwdisplay";
            s = d.createElement("div");
            s.className = "jwpreview jw" + x.jwGetStretching();
            m.appendChild(s);
            x.jwAddEventListener(b.JWPLAYER_PLAYER_STATE, p);
            x.jwAddEventListener(b.JWPLAYER_PLAYLIST_ITEM, function() {
                F = h;
                M.error && M.error.setText();
                var a = (z = x.jwGetPlaylist()[x.jwGetPlaylistIndex()]) ? z.image : "";
                Q = void 0;
                k(a);
            });
            x.jwAddEventListener(b.JWPLAYER_PLAYLIST_COMPLETE, function() {
                P = j;
                y("replay");
                var a = x.jwGetPlaylist()[0];
                k(a.image);
            });
            x.jwAddEventListener(b.JWPLAYER_MEDIA_ERROR, t);
            x.jwAddEventListener(b.JWPLAYER_ERROR, t);
            a ? (v = new g.touch(m), v.addEventListener(g.touchEvents.TAP, n)) : m.addEventListener("click", n, h);
            v = {
                font: Y.fontweight + " " + Y.fontsize + "px/" + (parseInt(Y.fontsize) + 3) + "px Arial,Helvetica,sans-serif",
                color: Y.fontcolor
            };
            J = new f.displayicon(m.id + "_button", x, v, {
                color: Y.overcolor
            });
            m.appendChild(J.element());
            p({
                newstate: e.IDLE
            });
        };
        c(".jwdisplay", {
            position: "absolute",
            cursor: "pointer",
            width: "100%",
            height: "100%",
            overflow: "hidden"
        });
        c(".jwdisplay .jwpreview", {
            position: "absolute",
            width: "100%",
            height: "100%",
            background: "no-repeat center",
            overflow: "hidden",
            opacity: 0
        });
        c(".jwdisplay, .jwdisplay *", {
            "-webkit-transition": "opacity .25s, background-image .25s, color .25s",
            "-moz-transition": "opacity .25s, background-image .25s, color .25s",
            "-o-transition": "opacity .25s, background-image .25s, color .25s"
        });
    })(jwplayer.html5);
    (function(f) {
        var g = jwplayer.utils, b = g.css, e = void 0, c = document, a = "none", d = "100%";
        f.displayicon = function(f, j, h, q) {
            function A(a, b) {
                return "#" + D + (b ? ":hover" : "") + " " + (a ? a : "");
            }
            function n(a, b, d, e) {
                var g = c.createElement("div");
                g.className = a;
                b && b.appendChild(g);
                y(a, "." + a, d, e);
                return g;
            }
            function y(a, c, d, e) {
                var f = k(a);
                "replayIcon" == a && !f.src && (f = k("playIcon"));
                f.src ? (d = g.extend({}, d), 0 < a.indexOf("Icon") && (G = f.width), d["background-image"] = "url(" + f.src + ")", 
                d["background-size"] = f.width + "px " + f.height + "px", d.width = f.width, b(A(c), d), 
                e = g.extend({}, e), f.overSrc && (e["background-image"] = "url(" + f.overSrc + ")"), 
                g.isMobile() || b("#" + t.id + " .jwdisplay:hover " + (c ? c : A()), e), b(A(), {
                    display: "table"
                }, !0)) : b(A(), {
                    display: "none"
                }, !0);
                B = f;
            }
            function k(a) {
                var b = w.getSkinElement("display", a);
                a = w.getSkinElement("display", a + "Over");
                return b ? (b.overSrc = a && a.src ? a.src : "", b) : {
                    src: "",
                    overSrc: "",
                    width: 0,
                    height: 0
                };
            }
            function p() {
                var c = v || 0 == G, g = "px " + d;
                b(A(".jwtext"), {
                    display: z.innerHTML && c ? e : a
                });
                M = 10;
                setTimeout(function() {
                    l(g);
                }, 0);
                c && (C = setInterval(function() {
                    l(g);
                }, 100));
            }
            function l(a) {
                if (0 >= M) clearInterval(C); else {
                    M--;
                    var c = Math.max(B.width, g.bounds(x).width - s.width - m.width);
                    (g.isFF() || g.isIE()) && c++;
                    g.isChrome() && 1 == x.parentNode.clientWidth % 2 && c++;
                    b(A(), {
                        "background-size": [ m.width + a, c + a, s.width + a ].join()
                    }, !0);
                }
            }
            function I() {
                E = (E + P) % 360;
                g.rotate(u, E);
            }
            var t = j, w = t.skin, D = f, x, m, s, v, z, u, B, G = 0, C, M;
            this.element = function() {
                return x;
            };
            this.setText = function(a) {
                var b = z.style;
                z.innerHTML = a ? a.replace(":", ":<br>") : "";
                b.height = "0";
                b.display = "block";
                if (a) for (;2 < Math.floor(z.scrollHeight / c.defaultView.getComputedStyle(z, null).lineHeight.replace("px", "")); ) z.innerHTML = z.innerHTML.replace(/(.*) .*$/, "$1...");
                b.height = "";
                b.display = "";
                p();
            };
            this.setIcon = function(a) {
                var b = n("jwicon");
                b.id = x.id + "_" + a;
                y(a + "Icon", "#" + b.id);
                x.contains(u) ? x.replaceChild(b, u) : x.appendChild(b);
                u = b;
            };
            var F, P = 0, E;
            this.setRotation = function(a, b) {
                clearInterval(F);
                E = 0;
                P = a;
                0 == a ? I() : F = setInterval(I, b);
            };
            j = this.hide = function() {
                x.style.opacity = 0;
            };
            this.show = function() {
                x.style.opacity = 1;
            };
            x = n("jwdisplayIcon");
            x.id = D;
            f = k("background");
            m = k("capLeft");
            s = k("capRight");
            v = 0 < m.width * s.width;
            var O = {
                "background-image": "url(" + m.src + "), url(" + f.src + "), url(" + s.src + ")",
                "background-position": "left,center,right",
                "background-repeat": "no-repeat",
                padding: "0 " + s.width + "px 0 " + m.width + "px",
                height: f.height,
                "margin-top": f.height / -2
            };
            b(A(), O);
            f.overSrc && (O["background-image"] = "url(" + m.overSrc + "), url(" + f.overSrc + "), url(" + s.overSrc + ")");
            g.isMobile() || b("#" + t.id + " .jwdisplay:hover " + A(), O);
            z = n("jwtext", x, h, q);
            u = n("jwicon", x);
            j();
            p();
        };
        b(".jwdisplayIcon", {
            display: "table",
            cursor: "pointer",
            position: "relative",
            "margin-left": "auto",
            "margin-right": "auto",
            top: "50%"
        }, !0);
        b(".jwdisplayIcon div", {
            position: "relative",
            display: "table-cell",
            "vertical-align": "middle",
            "background-repeat": "no-repeat",
            "background-position": "center"
        });
        b(".jwdisplayIcon div", {
            "vertical-align": "middle"
        }, !0);
        b(".jwdisplayIcon .jwtext", {
            color: "#fff",
            padding: "0 1px",
            "max-width": "300px",
            "overflow-y": "hidden",
            "text-align": "center",
            "-webkit-user-select": a,
            "-moz-user-select": a,
            "-ms-user-select": a,
            "user-select": a
        });
    })(jwplayer.html5);
    (function(f) {
        var g = jwplayer.utils, b = g.css, e = g.bounds, c = ".jwdockbuttons", a = document, d = "none", r = "block";
        f.dock = function(j, h) {
            function q(a) {
                return !a || !a.src ? {} : {
                    background: "url(" + a.src + ") center",
                    "background-size": a.width + "px " + a.height + "px"
                };
            }
            function A(a, c) {
                var d = k(a);
                b(n("." + a), g.extend(q(d), {
                    width: d.width
                }));
                return y("div", a, c);
            }
            function n(a) {
                return "#" + I + " " + (a ? a : "");
            }
            function y(b, c, d) {
                b = a.createElement(b);
                c && (b.className = c);
                d && d.appendChild(b);
                return b;
            }
            function k(a) {
                return (a = t.getSkinElement("dock", a)) ? a : {
                    width: 0,
                    height: 0,
                    src: ""
                };
            }
            function p() {
                b(c + " .capLeft, " + c + " .capRight", {
                    display: w ? r : d
                });
            }
            var l = g.extend({}, {
                iconalpha: .75,
                iconalphaactive: .5,
                iconalphaover: 1,
                margin: 8
            }, h), I = j.id + "_dock", t = j.skin, w = 0, D = {}, x = {}, m, s, v, z = this;
            z.redraw = function() {
                e(m);
            };
            z.element = function() {
                return m;
            };
            z.offset = function(a) {
                b(n(), {
                    "margin-left": a
                });
            };
            z.hide = function() {
                z.visible && (z.visible = !1, m.style.opacity = 0, clearTimeout(v), v = setTimeout(function() {
                    m.style.display = d;
                }, 250));
            };
            z.show = function() {
                !z.visible && w && (z.visible = !0, m.style.display = r, clearTimeout(v), v = setTimeout(function() {
                    m.style.opacity = 1;
                }, 0));
            };
            z.addButton = function(a, c, d, k) {
                if (!D[k]) {
                    var j = y("div", "divider", s), l = y("button", null, s), h = y("div", null, l);
                    h.id = I + "_" + k;
                    h.innerHTML = "&nbsp;";
                    b("#" + h.id, {
                        "background-image": a
                    });
                    "string" == typeof d && (d = new Function(d));
                    g.isMobile() ? new g.touch(l).addEventListener(g.touchEvents.TAP, function(a) {
                        d(a);
                    }) : l.addEventListener("click", function(a) {
                        d(a);
                        a.preventDefault();
                    });
                    D[k] = {
                        element: l,
                        label: c,
                        divider: j,
                        icon: h
                    };
                    if (c) {
                        var n = new f.overlay(h.id + "_tooltip", t, !0);
                        a = y("div");
                        a.id = h.id + "_label";
                        a.innerHTML = c;
                        b("#" + a.id, {
                            padding: 3
                        });
                        n.setContents(a);
                        if (!g.isMobile()) {
                            var q;
                            l.addEventListener("mouseover", function() {
                                clearTimeout(q);
                                var a = x[k], c, d;
                                c = e(D[k].icon);
                                a.offsetX(0);
                                d = e(m);
                                b("#" + a.element().id, {
                                    left: c.left - d.left + c.width / 2
                                });
                                c = e(a.element());
                                d.left > c.left && a.offsetX(d.left - c.left + 8);
                                n.show();
                                g.foreach(x, function(a, b) {
                                    a != k && b.hide();
                                });
                            }, !1);
                            l.addEventListener("mouseout", function() {
                                q = setTimeout(n.hide, 100);
                            }, !1);
                            m.appendChild(n.element());
                            x[k] = n;
                        }
                    }
                    w++;
                    p();
                }
            };
            z.removeButton = function(a) {
                if (D[a]) {
                    s.removeChild(D[a].element);
                    s.removeChild(D[a].divider);
                    var b = document.getElementById("" + I + "_" + a + "_tooltip");
                    b && m.removeChild(b);
                    delete D[a];
                    w--;
                    p();
                }
            };
            z.numButtons = function() {
                return w;
            };
            z.visible = !1;
            m = y("div", "jwdock");
            s = y("div", "jwdockbuttons");
            m.appendChild(s);
            m.id = I;
            var u = k("button"), B = k("buttonOver"), G = k("buttonActive");
            u && (b(n(), {
                height: u.height,
                padding: l.margin
            }), b(c, {
                height: u.height
            }), b(n("button"), g.extend(q(u), {
                width: u.width,
                cursor: "pointer",
                border: d
            })), b(n("button:hover"), q(B)), b(n("button:active"), q(G)), b(n("button>div"), {
                opacity: l.iconalpha
            }), b(n("button:hover>div"), {
                opacity: l.iconalphaover
            }), b(n("button:active>div"), {
                opacity: l.iconalphaactive
            }), b(n(".jwoverlay"), {
                top: l.margin + u.height
            }), A("capLeft", s), A("capRight", s), A("divider"));
            setTimeout(function() {
                e(m);
            });
        };
        b(".jwdock", {
            opacity: 0,
            display: d
        });
        b(".jwdock > *", {
            height: "100%",
            "float": "left"
        });
        b(".jwdock > .jwoverlay", {
            height: "auto",
            "float": d,
            "z-index": 99
        });
        b(c + " button", {
            position: "relative"
        });
        b(c + " > *", {
            height: "100%",
            "float": "left"
        });
        b(c + " .divider", {
            display: d
        });
        b(c + " button ~ .divider", {
            display: r
        });
        b(c + " .capLeft, " + c + " .capRight", {
            display: d
        });
        b(c + " .capRight", {
            "float": "right"
        });
        b(c + " button > div", {
            left: 0,
            right: 0,
            top: 0,
            bottom: 0,
            margin: 5,
            position: "absolute",
            "background-position": "center",
            "background-repeat": "no-repeat"
        });
        g.transitionStyle(".jwdock", "background .25s, opacity .25s");
        g.transitionStyle(".jwdock .jwoverlay", "opacity .25s");
        g.transitionStyle(c + " button div", "opacity .25s");
    })(jwplayer.html5);
    (function(f) {
        var g = jwplayer, b = g.utils, e = g.events, c = e.state, a = g.playlist;
        f.instream = function(d, g, j, h) {
            function q(a) {
                a.type == e.JWPLAYER_MEDIA_ERROR && (a = b.extend({}, a), a.type = e.JWPLAYER_ERROR);
                l(a.type, a);
                O = !0;
                E.jwInstreamDestroy(!1);
            }
            function A(a) {
                P.state = a.newstate;
                n(a);
            }
            function n(a) {
                C && l(a.type, a);
            }
            function y() {
                C && u.play();
            }
            function k() {
                C && setTimeout(function() {
                    E.jwInstreamDestroy(!0);
                }, 10);
            }
            function p(a) {
                a.width && a.height && x.resizeMedia();
            }
            function l(a, b, c) {
                (C || c) && M.sendEvent(a, b);
            }
            function I() {
                B && B.redraw();
                G && G.redraw();
            }
            var t = {
                controlbarseekable: "never",
                controlbarpausable: !0,
                controlbarstoppable: !0,
                playlistclickable: !0
            }, w, D, x = j, m, s, v, z, u, B, G, C = !1, M, F, P, E = this, O = !1, U = !0;
            E.load = function(j, M) {
                b.isAndroid(2.3) ? q({
                    type: e.JWPLAYER_ERROR,
                    message: "Error loading instream: Cannot play instream on Android 2.3"
                }) : (C = !0, D = b.extend(t, M), w = new a.item(j), F = document.createElement("div"), 
                F.id = E.id + "_instream_container", m = h.detachMedia(), u = new f.video(m), u.addGlobalListener(n), 
                u.addEventListener(e.JWPLAYER_MEDIA_META, p), u.addEventListener(e.JWPLAYER_MEDIA_COMPLETE, k), 
                u.addEventListener(e.JWPLAYER_MEDIA_BUFFER_FULL, y), u.addEventListener(e.JWPLAYER_MEDIA_ERROR, q), 
                u.addEventListener(e.JWPLAYER_PLAYER_STATE, A), u.attachMedia(), u.mute(g.mute), 
                u.volume(g.volume), P = new f.model({}, u), P.setVolume(g.volume), P.setMute(g.mute), 
                P.addEventListener(e.JWPLAYER_ERROR, q), z = g.playlist[g.item], v = g.getVideo().checkComplete() ? c.IDLE : d.jwGetState(), 
                h.checkBeforePlay() && (v = c.PLAYING, U = !1), s = m.currentTime, P.setPlaylist([ j ]), 
                O || ((v == c.BUFFERING || v == c.PLAYING) && m.pause(), G = new f.display(E), G.setAlternateClickHandler(function(a) {
                    d.jwGetControls() ? (P.state == c.PAUSED ? E.jwInstreamPlay() : E.jwInstreamPause(), 
                    a.hasControls = !0) : a.hasControls = !1;
                    l(e.JWPLAYER_INSTREAM_CLICK, a);
                }), F.appendChild(G.element()), B = new f.controlbar(E), F.appendChild(B.element()), 
                B.show(), d.jwGetControls() ? (B.show(), G.show()) : (B.hide(), G.hide()), x.setupInstream(F, B, G), 
                I(), u.load(P.playlist[0])));
            };
            E.jwInstreamDestroy = function(a) {
                if (C) {
                    C = !1;
                    v != c.IDLE ? u.load(z, !1) : u.stop();
                    M.resetEventListeners();
                    O || G.revertAlternateClickHandler();
                    u.detachMedia();
                    x.destroyInstream();
                    if (B) try {
                        B.element().parentNode.removeChild(B.getDisplayElement());
                    } catch (b) {}
                    l(e.JWPLAYER_INSTREAM_DESTROYED, {
                        reason: a ? "complete" : "destroyed"
                    }, !0);
                    h.attachMedia();
                    if (v == c.BUFFERING || v == c.PLAYING) m.play(), g.playlist[g.item] == z && U && g.getVideo().seek(s);
                }
            };
            E.jwInstreamAddEventListener = function(a, b) {
                M.addEventListener(a, b);
            };
            E.jwInstreamRemoveEventListener = function(a, b) {
                M.removeEventListener(a, b);
            };
            E.jwInstreamPlay = function() {
                C && (u.play(!0), g.state = jwplayer.events.state.PLAYING, G.show());
            };
            E.jwInstreamPause = function() {
                C && (u.pause(!0), g.state = jwplayer.events.state.PAUSED, d.jwGetControls() && G.show());
            };
            E.jwInstreamSeek = function(a) {
                C && u.seek(a);
            };
            E.jwInstreamSetText = function(a) {
                B.setText(a);
            };
            E.jwPlay = function() {
                "true" == D.controlbarpausable.toString().toLowerCase() && E.jwInstreamPlay();
            };
            E.jwPause = function() {
                "true" == D.controlbarpausable.toString().toLowerCase() && E.jwInstreamPause();
            };
            E.jwStop = function() {
                "true" == D.controlbarstoppable.toString().toLowerCase() && (E.jwInstreamDestroy(), 
                d.jwStop());
            };
            E.jwSeek = function(a) {
                switch (D.controlbarseekable.toLowerCase()) {
                  case "always":
                    E.jwInstreamSeek(a);
                    break;

                  case "backwards":
                    P.position > a && E.jwInstreamSeek(a);
                }
            };
            E.jwSeekDrag = function(a) {
                P.seekDrag(a);
            };
            E.jwGetPosition = function() {};
            E.jwGetDuration = function() {};
            E.jwGetWidth = d.jwGetWidth;
            E.jwGetHeight = d.jwGetHeight;
            E.jwGetFullscreen = d.jwGetFullscreen;
            E.jwSetFullscreen = d.jwSetFullscreen;
            E.jwGetVolume = function() {
                return g.volume;
            };
            E.jwSetVolume = function(a) {
                P.setVolume(a);
                d.jwSetVolume(a);
            };
            E.jwGetMute = function() {
                return g.mute;
            };
            E.jwSetMute = function(a) {
                P.setMute(a);
                d.jwSetMute(a);
            };
            E.jwGetState = function() {
                return P.state;
            };
            E.jwGetPlaylist = function() {
                return [ w ];
            };
            E.jwGetPlaylistIndex = function() {
                return 0;
            };
            E.jwGetStretching = function() {
                return g.config.stretching;
            };
            E.jwAddEventListener = function(a, b) {
                M.addEventListener(a, b);
            };
            E.jwRemoveEventListener = function(a, b) {
                M.removeEventListener(a, b);
            };
            E.jwSetCurrentQuality = function() {};
            E.jwGetQualityLevels = function() {
                return [];
            };
            E.skin = d.skin;
            E.id = d.id + "_instream";
            M = new e.eventdispatcher();
            d.jwAddEventListener(e.JWPLAYER_RESIZE, I);
            d.jwAddEventListener(e.JWPLAYER_FULLSCREEN, function(a) {
                n(a);
                I();
                b.isIPad() && !a.fullscreen && P.state == jwplayer.events.state.PAUSED && G.show(!0);
                b.isIPad() && !a.fullscreen && P.state == jwplayer.events.state.PLAYING && G.hide();
            });
            return E;
        };
    })(jwplayer.html5);
    (function(f) {
        var g = f.utils, b = g.css, e = f.events.state, c = f.html5.logo = function(a, d) {
            function r(a) {
                g.exists(a) && a.stopPropagation && a.stopPropagation();
                if (!y || !q.link) j.jwGetState() == e.IDLE || j.jwGetState() == e.PAUSED ? j.jwPlay() : j.jwPause();
                y && q.link && (j.jwPause(), j.jwSetFullscreen(!1), window.open(q.link, q.linktarget));
            }
            var j = a, h = j.id + "_logo", q, A, n = c.defaults, y = !1;
            this.resize = function() {};
            this.element = function() {
                return A;
            };
            this.offset = function(a) {
                b("#" + h + " ", {
                    "margin-bottom": a
                });
            };
            this.position = function() {
                return q.position;
            };
            this.margin = function() {
                return parseInt(q.margin);
            };
            this.hide = function(a) {
                if (q.hide || a) y = !1, A.style.visibility = "hidden", A.style.opacity = 0;
            };
            this.show = function() {
                y = !0;
                A.style.visibility = "visible";
                A.style.opacity = 1;
            };
            var k = "o";
            j.edition && (k = j.edition(), k = "pro" == k ? "p" : "premium" == k ? "r" : "ads" == k ? "a" : "free" == k ? "f" : "o");
            if ("o" == k || "f" == k) n.link = "http://www.longtailvideo.com/jwpabout/?a=l&v=" + f.version + "&m=h&e=" + k;
            q = g.extend({}, n, d);
            q.hide = "true" == q.hide.toString();
            A = document.createElement("img");
            A.className = "jwlogo";
            A.id = h;
            if (q.file) {
                var n = /(\w+)-(\w+)/.exec(q.position), k = {}, p = q.margin;
                3 == n.length ? (k[n[1]] = p, k[n[2]] = p) : k.top = k.right = p;
                b("#" + h + " ", k);
                A.src = (q.prefix ? q.prefix : "") + q.file;
                g.isMobile() ? new g.touch(A).addEventListener(g.touchEvents.TAP, r) : A.onclick = r;
            } else A.style.display = "none";
            return this;
        };
        c.defaults = {
            prefix: g.repo(),
            file: "logo.png",
            linktarget: "_top",
            margin: 8,
            hide: !1,
            position: "top-right"
        };
        b(".jwlogo", {
            cursor: "pointer",
            position: "absolute",
            "z-index": 100,
            opacity: 0
        });
        g.transitionStyle(".jwlogo", "visibility .25s, opacity .25s");
    })(jwplayer);
    (function(f) {
        var g = f.html5, b = f.utils, e = b.css, c = void 0;
        g.menu = function(a, d, f, j) {
            function h(a) {
                return !a || !a.src ? {} : {
                    background: "url(" + a.src + ") no-repeat left",
                    "background-size": a.width + "px " + a.height + "px"
                };
            }
            function q(a, b) {
                return function() {
                    I(a);
                    y && y(b);
                };
            }
            function A(a, b) {
                var c = document.createElement("div");
                a && (c.className = a);
                b && b.appendChild(c);
                return c;
            }
            function n(a) {
                return (a = f.getSkinElement("tooltip", a)) ? a : {
                    width: 0,
                    height: 0,
                    src: c
                };
            }
            var y = j, k = new g.overlay(d + "_overlay", f);
            j = b.extend({
                fontcase: c,
                fontcolor: "#cccccc",
                fontsize: 11,
                fontweight: c,
                activecolor: "#ffffff",
                overcolor: "#ffffff"
            }, f.getComponentSettings("tooltip"));
            var p, l = [];
            this.element = function() {
                return k.element();
            };
            this.addOption = function(a, c) {
                var e = A("jwoption", p);
                e.id = d + "_option_" + c;
                e.innerHTML = a;
                b.isMobile() ? new b.touch(e).addEventListener(b.touchEvents.TAP, q(l.length, c)) : e.addEventListener("click", q(l.length, c));
                l.push(e);
            };
            this.clearOptions = function() {
                for (;0 < l.length; ) p.removeChild(l.pop());
            };
            var I = this.setActive = function(a) {
                for (var b = 0; b < l.length; b++) {
                    var c = l[b];
                    c.className = c.className.replace(" active", "");
                    b == a && (c.className += " active");
                }
            };
            this.show = k.show;
            this.hide = k.hide;
            this.offsetX = k.offsetX;
            p = A("jwmenu");
            p.id = d;
            var t = n("menuTop" + a);
            a = n("menuOption");
            var w = n("menuOptionOver"), D = n("menuOptionActive");
            if (t && t.image) {
                var x = new Image();
                x.src = t.src;
                x.width = t.width;
                x.height = t.height;
                p.appendChild(x);
            }
            a && (t = "#" + d + " .jwoption", e(t, b.extend(h(a), {
                height: a.height,
                color: j.fontcolor,
                "padding-left": a.width,
                font: j.fontweight + " " + j.fontsize + "px Arial,Helvetica,sans-serif",
                "line-height": a.height,
                "text-transform": "upper" == j.fontcase ? "uppercase" : c
            })), e(t + ":hover", b.extend(h(w), {
                color: j.overcolor
            })), e(t + ".active", b.extend(h(D), {
                color: j.activecolor
            })));
            k.setContents(p);
        };
        e("." + "jwmenu jwoption".replace(/ /g, " ."), {
            cursor: "pointer",
            position: "relative"
        });
    })(jwplayer);
    (function(f) {
        var g = jwplayer.utils, b = jwplayer.events;
        f.model = function(e, c) {
            function a(a) {
                var b = A[a.type] ? A[a.type].split(",") : [], c, e;
                if (0 < b.length) {
                    for (c = 0; c < b.length; c++) {
                        var g = b[c].split("->"), f = g[0], g = g[1] ? g[1] : f;
                        d[g] != a[f] && (d[g] = a[f], e = !0);
                    }
                    e && d.sendEvent(a.type, a);
                } else d.sendEvent(a.type, a);
            }
            var d = this, r, j;
            j = g.getCookies();
            var h = {
                controlbar: {},
                display: {}
            }, q = {
                autostart: !1,
                controls: !0,
                debug: void 0,
                fullscreen: !1,
                height: 320,
                mobilecontrols: !1,
                mute: !1,
                playlist: [],
                playlistposition: "none",
                playlistsize: 180,
                playlistlayout: "extended",
                repeat: !1,
                skin: void 0,
                stretching: g.stretching.UNIFORM,
                width: 480,
                volume: 90
            }, A = {};
            A[b.JWPLAYER_MEDIA_MUTE] = "mute";
            A[b.JWPLAYER_MEDIA_VOLUME] = "volume";
            A[b.JWPLAYER_PLAYER_STATE] = "newstate->state";
            A[b.JWPLAYER_MEDIA_BUFFER] = "bufferPercent->buffer";
            A[b.JWPLAYER_MEDIA_TIME] = "position,duration";
            d.getVideo = function() {
                return r;
            };
            d.seekDrag = function(a) {
                r.seekDrag(a);
            };
            d.setFullscreen = function(a) {
                a != d.fullscreen && (d.fullscreen = a, d.sendEvent(b.JWPLAYER_FULLSCREEN, {
                    fullscreen: a
                }));
            };
            d.setPlaylist = function(a) {
                d.playlist = g.filterPlaylist(a);
                0 == d.playlist.length ? d.sendEvent(b.JWPLAYER_ERROR, {
                    message: "Error loading playlist: No playable sources found"
                }) : (d.sendEvent(b.JWPLAYER_PLAYLIST_LOADED, {
                    playlist: jwplayer(d.id).getPlaylist()
                }), d.item = -1, d.setItem(0));
            };
            d.setItem = function(a) {
                var c = !1;
                a == d.playlist.length || -1 > a ? (a = 0, c = !0) : a = -1 == a || a > d.playlist.length ? d.playlist.length - 1 : a;
                if (c || a != d.item) d.item = a, d.sendEvent(b.JWPLAYER_PLAYLIST_ITEM, {
                    index: d.item
                });
            };
            d.setVolume = function(c) {
                d.mute && 0 < c && d.setMute(!1);
                c = Math.round(c);
                d.mute || g.saveCookie("volume", c);
                a({
                    type: b.JWPLAYER_MEDIA_VOLUME,
                    volume: c
                });
                r.volume(c);
            };
            d.setMute = function(c) {
                g.exists(c) || (c = !d.mute);
                g.saveCookie("mute", c);
                a({
                    type: b.JWPLAYER_MEDIA_MUTE,
                    mute: c
                });
                r.mute(c);
            };
            d.componentConfig = function(a) {
                return h[a];
            };
            g.extend(d, new b.eventdispatcher());
            var n = d, y = g.extend({}, q, j, e);
            g.foreach(y, function(a, b) {
                y[a] = g.serialize(b);
            });
            n.config = y;
            g.extend(d, {
                id: e.id,
                state: b.state.IDLE,
                duration: -1,
                position: 0,
                buffer: 0
            }, d.config);
            d.playlist = [];
            d.setItem(0);
            c ? (r = c, j = r.getTag()) : (j = document.createElement("video"), r = new f.video(j));
            r.volume(d.volume);
            r.mute(d.mute);
            r.addGlobalListener(a);
        };
    })(jwplayer.html5);
    (function(f) {
        var g = f.utils, b = g.css, e = g.transitionStyle, c = "top", a = "bottom", d = "right", r = "left", j = void 0, h = document, q = {
            fontcase: j,
            fontcolor: "#ffffff",
            fontsize: 12,
            fontweight: j,
            activecolor: "#ffffff",
            overcolor: "#ffffff"
        };
        f.html5.overlay = function(e, f, y) {
            function k(a) {
                return "#" + x + (a ? " ." + a : "");
            }
            function p(a, b) {
                var c = h.createElement("div");
                a && (c.className = a);
                b && b.appendChild(c);
                return c;
            }
            function l(a, c) {
                var d;
                d = (d = D.getSkinElement("tooltip", a)) ? d : {
                    width: 0,
                    height: 0,
                    src: "",
                    image: j,
                    ready: !1
                };
                var e = p(c, m);
                b(k(c.replace(" ", ".")), I(d));
                return [ e, d ];
            }
            function I(a) {
                return {
                    background: "url(" + a.src + ") center",
                    "background-size": a.width + "px " + a.height + "px"
                };
            }
            function t(e, f) {
                f || (f = "");
                var h = l("cap" + e + f, "jwborder jw" + e + (f ? f : "")), m = h[0], h = h[1], n = g.extend(I(h), {
                    width: e == r || f == r || e == d || f == d ? h.width : j,
                    height: e == c || f == c || e == a || f == a ? h.height : j
                });
                n[e] = e == a && !B || e == c && B ? u : 0;
                f && (n[f] = 0);
                b(k(m.className.replace(/ /g, ".")), n);
                m = {};
                n = {};
                h = {
                    left: h.width,
                    right: h.width,
                    top: (B ? u : 0) + h.height,
                    bottom: (B ? 0 : u) + h.height
                };
                f && (m[f] = h[f], m[e] = 0, n[e] = h[e], n[f] = 0, b(k("jw" + e), m), b(k("jw" + f), n), 
                G[e] = h[e], G[f] = h[f]);
            }
            function w() {
                0 != m.clientWidth && (b(k(), {
                    "margin-left": Math.round(v - m.clientWidth / 2)
                }), b(k("jwarrow"), {
                    "margin-left": Math.round(z.width / -2 - v)
                }));
            }
            var D = f, x = e, m, s, v = 0, z, u, B = y;
            e = g.extend({}, q, D.getComponentSettings("tooltip"));
            var G = {}, C = this;
            C.element = function() {
                return m;
            };
            var M;
            C.setContents = function(a) {
                g.empty(s);
                s.appendChild(a);
                clearTimeout(M);
                M = setTimeout(w, 0);
            };
            C.offsetX = function(a) {
                v = a;
                clearTimeout(M);
                w();
            };
            C.borderWidth = function() {
                return G.left;
            };
            C.show = function() {
                C.showing = !0;
                m.style.opacity = 1;
                m.style.visibility = "visible";
            };
            C.hide = function() {
                C.showing = !1;
                m.style.opacity = 0;
                m.style.visibility = "hidden";
            };
            m = p(".jwoverlay".replace(".", ""));
            m.id = x;
            z = l("arrow", "jwarrow")[1];
            u = z.height;
            b(k("jwarrow"), {
                position: "absolute",
                bottom: B ? j : 0,
                top: B ? 0 : j,
                width: z.width,
                height: u,
                left: "50%"
            });
            t(c, r);
            t(a, r);
            t(c, d);
            t(a, d);
            t(r);
            t(d);
            t(c);
            t(a);
            l("background", "jwback");
            b(k("jwback"), {
                left: G.left,
                right: G.right,
                top: G.top,
                bottom: G.bottom
            });
            s = p("jwcontents", m);
            b(k("jwcontents") + " *", {
                color: e.fontcolor,
                font: e.fontweight + " " + e.fontsize + "px Arial,Helvetica,sans-serif",
                "text-transform": "upper" == e.fontcase ? "uppercase" : j
            });
            B && g.transform(k("jwarrow"), "rotate(180deg)");
            b(k(), {
                padding: G.top + 1 + "px " + G.right + "px " + (G.bottom + 1) + "px " + G.left + "px"
            });
            C.showing = !1;
        };
        b(".jwoverlay", {
            position: "absolute",
            visibility: "hidden",
            opacity: 0
        });
        b(".jwoverlay .jwcontents", {
            position: "relative",
            "z-index": 1
        });
        b(".jwoverlay .jwborder", {
            position: "absolute",
            "background-size": "100% 100%"
        }, !0);
        b(".jwoverlay .jwback", {
            position: "absolute",
            "background-size": "100% 100%"
        });
        e(".jwoverlay", "opacity .25s, visibility .25s, left .01s linear");
    })(jwplayer);
    (function(f) {
        var g = jwplayer.utils;
        f.player = function(b) {
            function e(a) {
                var b = {
                    description: a.description,
                    file: a.file,
                    image: a.image,
                    mediaid: a.mediaid,
                    title: a.title
                };
                g.foreach(a, function(a, c) {
                    b[a] = c;
                });
                b.sources = [];
                b.tracks = [];
                0 < a.sources.length && g.foreach(a.sources, function(a, c) {
                    b.sources.push({
                        file: c.file,
                        type: c.type ? c.type : void 0,
                        label: c.label,
                        "default": c["default"] ? !0 : !1
                    });
                });
                0 < a.tracks.length && g.foreach(a.tracks, function(a, c) {
                    b.tracks.push({
                        file: c.file,
                        kind: c.kind ? c.kind : void 0,
                        label: c.label,
                        "default": c["default"] ? !0 : !1
                    });
                });
                !a.file && 0 < a.sources.length && (b.file = a.sources[0].file);
                return b;
            }
            function c(a) {
                return function() {
                    return d[a];
                };
            }
            var a = this, d, r, j, h;
            d = new f.model(b);
            a.id = d.id;
            r = new f.view(a, d);
            j = new f.controller(d, r);
            a._model = d;
            jwplayer.utils.css.block();
            a.jwPlay = j.play;
            a.jwPause = j.pause;
            a.jwStop = j.stop;
            a.jwSeek = j.seek;
            a.jwSetVolume = j.setVolume;
            a.jwSetMute = j.setMute;
            a.jwLoad = j.load;
            a.jwPlaylistNext = j.next;
            a.jwPlaylistPrev = j.prev;
            a.jwPlaylistItem = j.item;
            a.jwSetFullscreen = j.setFullscreen;
            a.jwResize = r.resize;
            a.jwSeekDrag = d.seekDrag;
            a.jwGetQualityLevels = j.getQualityLevels;
            a.jwGetCurrentQuality = j.getCurrentQuality;
            a.jwSetCurrentQuality = j.setCurrentQuality;
            a.jwGetCaptionsList = j.getCaptionsList;
            a.jwGetCurrentCaptions = j.getCurrentCaptions;
            a.jwSetCurrentCaptions = j.setCurrentCaptions;
            a.jwSetControls = r.setControls;
            a.jwGetSafeRegion = r.getSafeRegion;
            a.jwForceState = r.forceState;
            a.jwReleaseState = r.releaseState;
            a.jwGetPlaylistIndex = c("item");
            a.jwGetPosition = c("position");
            a.jwGetDuration = c("duration");
            a.jwGetBuffer = c("buffer");
            a.jwGetWidth = c("width");
            a.jwGetHeight = c("height");
            a.jwGetFullscreen = c("fullscreen");
            a.jwGetVolume = c("volume");
            a.jwGetMute = c("mute");
            a.jwGetState = c("state");
            a.jwGetStretching = c("stretching");
            a.jwGetPlaylist = function() {
                for (var a = d.playlist, c = [], b = 0; b < a.length; b++) c.push(e(a[b]));
                return c;
            };
            a.jwGetControls = c("controls");
            a.jwDetachMedia = j.detachMedia;
            a.jwAttachMedia = j.attachMedia;
            a.jwPlayAd = function(c) {
                var b = jwplayer(a.id).plugins;
                b.vast && b.vast.jwPlayAd(c);
            };
            a.jwLoadInstream = function(c, b) {
                h || (h = new f.instream(a, d, r, j));
                h.load(c, b);
            };
            a.jwInstreamPlay = function() {
                h && h.jwInstreamPlay();
            };
            a.jwInstreamPause = function() {
                h && h.jwInstreamPause();
            };
            a.jwInstreamDestroy = function() {
                h && h.jwInstreamDestroy();
                h = void 0;
            };
            a.jwInstreamAddEventListener = function(a, c) {
                h && h.jwInstreamAddEventListener(a, c);
            };
            a.jwInstreamRemoveEventListener = function(a, c) {
                h && h.jwInstreamRemoveEventListener(a, c);
            };
            a.jwPlayerDestroy = function() {
                r && r.destroy();
            };
            a.jwInstreamSetText = function(a) {
                h && h.jwInstreamSetText(a);
            };
            a.jwIsBeforePlay = function() {
                return j.checkBeforePlay();
            };
            a.jwIsBeforeComplete = function() {
                return d.getVideo().checkComplete();
            };
            a.jwAddEventListener = j.addEventListener;
            a.jwRemoveEventListener = j.removeEventListener;
            a.jwDockAddButton = r.addButton;
            a.jwDockRemoveButton = r.removeButton;
            b = new f.setup(d, r, j);
            b.addEventListener(jwplayer.events.JWPLAYER_READY, function(a) {
                j.playerReady(a);
                g.css.unblock();
            });
            b.addEventListener(jwplayer.events.JWPLAYER_ERROR, function(a) {
                g.log("There was a problem setting up the player: ", a);
                g.css.unblock();
            });
            b.start();
        };
    })(jwplayer.html5);
    (function(f) {
        var g = {
            size: 180,
            backgroundcolor: "#333333",
            fontcolor: "#999999",
            overcolor: "#CCCCCC",
            activecolor: "#CCCCCC",
            titlecolor: "#CCCCCC",
            titleovercolor: "#FFFFFF",
            titleactivecolor: "#FFFFFF",
            fontweight: "normal",
            titleweight: "normal",
            fontsize: 11,
            titlesize: 13
        }, b = jwplayer.events, e = jwplayer.utils, c = e.css, a = e.isMobile(), d = document;
        f.playlistcomponent = function(r, j) {
            function h(a) {
                return "#" + p.id + (a ? " ." + a : "");
            }
            function q(a, c) {
                var b = d.createElement(a);
                c && (b.className = c);
                return b;
            }
            function A(a) {
                return function() {
                    D = a;
                    n.jwPlaylistItem(a);
                    n.jwPlay(!0);
                };
            }
            var n = r, y = n.skin, k = e.extend({}, g, n.skin.getComponentSettings("playlist"), j), p, l, I, t, w = -1, D, x, m = -1, s = 76, v = {
                background: void 0,
                divider: void 0,
                item: void 0,
                itemOver: void 0,
                itemImage: void 0,
                itemActive: void 0
            }, z, u = this;
            u.element = function() {
                return p;
            };
            u.redraw = function() {
                x && x.redraw();
            };
            u.show = function() {
                e.show(p);
            };
            u.hide = function() {
                e.hide(p);
            };
            p = q("div", "jwplaylist");
            p.id = n.id + "_jwplayer_playlistcomponent";
            z = "basic" == n._model.playlistlayout;
            l = q("div", "jwlistcontainer");
            p.appendChild(l);
            e.foreach(v, function(a) {
                v[a] = y.getSkinElement("playlist", a);
            });
            z && (s = 32);
            v.divider && (s += v.divider.height);
            var B = 0, G = 0, C = 0;
            e.clearCss(h());
            c(h(), {
                "background-color": k.backgroundcolor
            });
            c(h("jwlist"), {
                "background-image": v.background ? " url(" + v.background.src + ")" : ""
            });
            c(h("jwlist *"), {
                color: k.fontcolor,
                font: k.fontweight + " " + k.fontsize + "px Arial, Helvetica, sans-serif"
            });
            v.itemImage ? (B = (s - v.itemImage.height) / 2 + "px ", G = v.itemImage.width, 
            C = v.itemImage.height) : (G = 4 * s / 3, C = s);
            v.divider && c(h("jwplaylistdivider"), {
                "background-image": "url(" + v.divider.src + ")",
                "background-size": "100% " + v.divider.height + "px",
                width: "100%",
                height: v.divider.height
            });
            c(h("jwplaylistimg"), {
                height: C,
                width: G,
                margin: B ? B + "0 " + B + B : "0 5px 0 0"
            });
            c(h("jwlist li"), {
                "background-image": v.item ? "url(" + v.item.src + ")" : "",
                height: s,
                overflow: "hidden",
                "background-size": "100% " + s + "px",
                cursor: "pointer"
            });
            B = {
                overflow: "hidden"
            };
            "" !== k.activecolor && (B.color = k.activecolor);
            v.itemActive && (B["background-image"] = "url(" + v.itemActive.src + ")");
            c(h("jwlist li.active"), B);
            c(h("jwlist li.active .jwtitle"), {
                color: k.titleactivecolor
            });
            c(h("jwlist li.active .jwdescription"), {
                color: k.activecolor
            });
            B = {
                overflow: "hidden"
            };
            "" !== k.overcolor && (B.color = k.overcolor);
            v.itemOver && (B["background-image"] = "url(" + v.itemOver.src + ")");
            a || (c(h("jwlist li:hover"), B), c(h("jwlist li:hover .jwtitle"), {
                color: k.titleovercolor
            }), c(h("jwlist li:hover .jwdescription"), {
                color: k.overcolor
            }));
            c(h("jwtextwrapper"), {
                height: s,
                position: "relative"
            });
            c(h("jwtitle"), {
                overflow: "hidden",
                display: "inline-block",
                height: z ? s : 20,
                color: k.titlecolor,
                "font-size": k.titlesize,
                "font-weight": k.titleweight,
                "margin-top": z ? "0 10px" : 10,
                "margin-left": 10,
                "margin-right": 10,
                "line-height": z ? s : 20
            });
            c(h("jwdescription"), {
                display: "block",
                "font-size": k.fontsize,
                "line-height": 18,
                "margin-left": 10,
                "margin-right": 10,
                overflow: "hidden",
                height: 36,
                position: "relative"
            });
            n.jwAddEventListener(b.JWPLAYER_PLAYLIST_LOADED, function() {
                l.innerHTML = "";
                for (var b = n.jwGetPlaylist(), d = [], g = 0; g < b.length; g++) b[g]["ova.hidden"] || d.push(b[g]);
                if (I = d) {
                    b = q("ul", "jwlist");
                    b.id = p.id + "_ul" + Math.round(1e7 * Math.random());
                    t = b;
                    for (b = 0; b < I.length; b++) {
                        var h = b, d = I[h], g = q("li", "jwitem"), j = void 0;
                        g.id = t.id + "_item_" + h;
                        0 < h ? (j = q("div", "jwplaylistdivider"), g.appendChild(j)) : (h = v.divider ? v.divider.height : 0, 
                        g.style.height = s - h + "px", g.style["background-size"] = "100% " + (s - h) + "px");
                        h = q("div", "jwplaylistimg jwfill");
                        j = void 0;
                        d["playlist.image"] && v.itemImage ? j = d["playlist.image"] : d.image && v.itemImage ? j = d.image : v.itemImage && (j = v.itemImage.src);
                        j && !z && (c("#" + g.id + " .jwplaylistimg", {
                            "background-image": j
                        }), g.appendChild(h));
                        h = q("div", "jwtextwrapper");
                        j = q("span", "jwtitle");
                        j.innerHTML = d && d.title ? d.title : "";
                        h.appendChild(j);
                        d.description && !z && (j = q("span", "jwdescription"), j.innerHTML = d.description, 
                        h.appendChild(j));
                        g.appendChild(h);
                        d = g;
                        a ? new e.touch(d).addEventListener(e.touchEvents.TAP, A(b)) : d.onclick = A(b);
                        t.appendChild(d);
                    }
                    w = n.jwGetPlaylistIndex();
                    l.appendChild(t);
                    x = new f.playlistslider(p.id + "_slider", n.skin, p, t);
                }
            });
            n.jwAddEventListener(b.JWPLAYER_PLAYLIST_ITEM, function(a) {
                0 <= w && (d.getElementById(t.id + "_item_" + w).className = "jwitem", w = a.index);
                d.getElementById(t.id + "_item_" + a.index).className = "jwitem active";
                a = n.jwGetPlaylistIndex();
                a != D && (D = -1, x && x.visible() && x.thumbPosition(a / (n.jwGetPlaylist().length - 1)));
            });
            var M = setInterval(function() {
                var a = d.getElementById(p.id), b = e.bounds(a).height;
                a != p ? clearInterval(M) : b != m && (m = b, u.redraw());
            }, 200);
            return this;
        };
        c(".jwplaylist", {
            position: "absolute",
            width: "100%",
            height: "100%"
        });
        e.dragStyle(".jwplaylist", "none");
        c(".jwplaylist .jwplaylistimg", {
            position: "relative",
            width: "100%",
            "float": "left",
            margin: "0 5px 0 0",
            background: "#000",
            overflow: "hidden"
        });
        c(".jwplaylist .jwlist", {
            position: "absolute",
            width: "100%",
            "list-style": "none",
            margin: 0,
            padding: 0,
            overflow: "hidden"
        });
        c(".jwplaylist .jwlistcontainer", {
            position: "absolute",
            overflow: "hidden",
            width: "100%",
            height: "100%"
        });
        c(".jwplaylist .jwlist li", {
            width: "100%"
        });
        c(".jwplaylist .jwtextwrapper", {
            overflow: "hidden"
        });
        c(".jwplaylist .jwplaylistdivider", {
            position: "absolute"
        });
        a && e.transitionStyle(".jwplaylist .jwlist", "top .35s");
    })(jwplayer.html5);
    (function(f) {
        function g() {
            var a = [], b;
            for (b = 0; b < arguments.length; b++) a.push(".jwplaylist ." + arguments[b]);
            return a.join(",");
        }
        var b = jwplayer.utils, e = b.touchEvents, c = b.css, a = document, d = window, r = void 0;
        f.playlistslider = function(g, f, q, A) {
            function n(a) {
                return "#" + s.id + (a ? " ." + a : "");
            }
            function y(b, d, e, g) {
                var f = a.createElement("div");
                b && (f.className = b, d && c(n(b), {
                    "background-image": d.src ? d.src : r,
                    "background-repeat": g ? "repeat-y" : "no-repeat",
                    height: g ? r : d.height
                }));
                e && e.appendChild(f);
                return f;
            }
            function k(a) {
                return (a = x.getSkinElement("playlist", a)) ? a : {
                    width: 0,
                    height: 0,
                    src: r
                };
            }
            function p(a) {
                if (M) return a = a ? a : d.event, aa(B - (a.detail ? -1 * a.detail : a.wheelDelta / 40) / 10), 
                a.stopPropagation && a.stopPropagation(), a.preventDefault && a.preventDefault(), 
                a.cancelBubble = !0, a.cancel = !0, a.returnValue = !1;
            }
            function l(b) {
                0 == b.button && (u = !0);
                a.onselectstart = function() {
                    return !1;
                };
                d.addEventListener("mousemove", t, !1);
                d.addEventListener("mouseup", D, !1);
            }
            function I(a) {
                aa(B - 2 * a.deltaY / m.clientHeight);
            }
            function t(a) {
                if (u || "click" == a.type) {
                    var c = b.bounds(v), d = z.clientHeight / 2;
                    aa((a.pageY - c.top - d) / (c.height - d - d));
                }
            }
            function w(a) {
                return function(b) {
                    0 < b.button || (aa(B + .05 * a), G = setTimeout(function() {
                        C = setInterval(function() {
                            aa(B + .05 * a);
                        }, 50);
                    }, 500));
                };
            }
            function D() {
                u = !1;
                d.removeEventListener("mousemove", t);
                d.removeEventListener("mouseup", D);
                a.onselectstart = r;
                clearTimeout(G);
                clearInterval(C);
            }
            var x = f, m = A, s, v, z, u, B = 0, G, C;
            f = b.isMobile();
            var M = !0, F, P, E, O, U, J, Z, Q, Y;
            this.element = function() {
                return s;
            };
            this.visible = function() {
                return M;
            };
            var da = this.redraw = function() {
                clearTimeout(Y);
                Y = setTimeout(function() {
                    if (m && m.clientHeight) {
                        var a = m.parentNode.clientHeight / m.clientHeight;
                        0 > a && (a = 0);
                        1 < a ? M = !1 : (M = !0, c(n("jwthumb"), {
                            height: Math.max(v.clientHeight * a, U.height + J.height)
                        }));
                        c(n(), {
                            visibility: M ? "visible" : "hidden"
                        });
                        m && (m.style.width = M ? m.parentElement.clientWidth - E.width + "px" : "");
                    } else Y = setTimeout(da, 10);
                }, 0);
            }, aa = this.thumbPosition = function(a) {
                isNaN(a) && (a = 0);
                B = Math.max(0, Math.min(1, a));
                c(n("jwthumb"), {
                    top: Z + (v.clientHeight - z.clientHeight) * B
                });
                A && (A.style.top = Math.min(0, s.clientHeight - A.scrollHeight) * B + "px");
            };
            s = y("jwslider", null, q);
            s.id = g;
            g = new b.touch(m);
            f ? g.addEventListener(e.DRAG, I) : (s.addEventListener("mousedown", l, !1), s.addEventListener("click", t, !1));
            F = k("sliderCapTop");
            P = k("sliderCapBottom");
            E = k("sliderRail");
            g = k("sliderRailCapTop");
            q = k("sliderRailCapBottom");
            O = k("sliderThumb");
            U = k("sliderThumbCapTop");
            J = k("sliderThumbCapBottom");
            Z = F.height;
            Q = P.height;
            c(n(), {
                width: E.width
            });
            c(n("jwrail"), {
                top: Z,
                bottom: Q
            });
            c(n("jwthumb"), {
                top: Z
            });
            F = y("jwslidertop", F, s);
            P = y("jwsliderbottom", P, s);
            v = y("jwrail", null, s);
            z = y("jwthumb", null, s);
            f || (F.addEventListener("mousedown", w(-1), !1), P.addEventListener("mousedown", w(1), !1));
            y("jwrailtop", g, v);
            y("jwrailback", E, v, !0);
            y("jwrailbottom", q, v);
            c(n("jwrailback"), {
                top: g.height,
                bottom: q.height
            });
            y("jwthumbtop", U, z);
            y("jwthumbback", O, z, !0);
            y("jwthumbbottom", J, z);
            c(n("jwthumbback"), {
                top: U.height,
                bottom: J.height
            });
            da();
            m && !f && (m.addEventListener("mousewheel", p, !1), m.addEventListener("DOMMouseScroll", p, !1));
            return this;
        };
        c(g("jwslider"), {
            position: "absolute",
            height: "100%",
            visibility: "hidden",
            right: 0,
            top: 0,
            cursor: "pointer",
            "z-index": 1,
            overflow: "hidden"
        });
        c(g("jwslider") + " *", {
            position: "absolute",
            width: "100%",
            "background-position": "center",
            "background-size": "100% 100%",
            overflow: "hidden"
        });
        c(g("jwslidertop", "jwrailtop", "jwthumbtop"), {
            top: 0
        });
        c(g("jwsliderbottom", "jwrailbottom", "jwthumbbottom"), {
            bottom: 0
        });
    })(jwplayer.html5);
    (function(f) {
        var g = jwplayer.utils, b = g.css, e = document, c = "none";
        f.rightclick = function(a, b) {
            function r(a) {
                var b = e.createElement("div");
                b.className = a.replace(".", "");
                return b;
            }
            function j() {
                A || (n.style.display = c);
            }
            var h, q = g.extend({
                aboutlink: "http://www.longtailvideo.com/jwpabout/?a=r&v=" + f.version + "&m=h&e=o",
                abouttext: "About JW Player " + f.version + "..."
            }, b), A = !1, n, y;
            this.element = function() {
                return n;
            };
            this.destroy = function() {
                e.removeEventListener("mousedown", j, !1);
            };
            h = e.getElementById(a.id);
            n = r(".jwclick");
            n.id = a.id + "_menu";
            n.style.display = c;
            h.oncontextmenu = function(a) {
                if (!A) {
                    null == a && (a = window.event);
                    var b = null != a.target ? a.target : a.srcElement, d = g.bounds(h), b = g.bounds(b);
                    n.style.display = c;
                    n.style.left = (a.offsetX ? a.offsetX : a.layerX) + b.left - d.left + "px";
                    n.style.top = (a.offsetY ? a.offsetY : a.layerY) + b.top - d.top + "px";
                    n.style.display = "block";
                    a.preventDefault();
                }
            };
            n.onmouseover = function() {
                A = !0;
            };
            n.onmouseout = function() {
                A = !1;
            };
            e.addEventListener("mousedown", j, !1);
            y = r(".jwclick_item");
            y.innerHTML = q.abouttext;
            y.onclick = function() {
                window.location.href = q.aboutlink;
            };
            n.appendChild(y);
            h.appendChild(n);
        };
        b(".jwclick", {
            "background-color": "#FFF",
            "-webkit-border-radius": 5,
            "-moz-border-radius": 5,
            "border-radius": 5,
            height: "auto",
            border: "1px solid #bcbcbc",
            "font-family": '"MS Sans Serif", "Geneva", sans-serif',
            "font-size": 10,
            width: 320,
            "-webkit-box-shadow": "5px 5px 7px rgba(0,0,0,.10), 0px 1px 0px rgba(255,255,255,.3) inset",
            "-moz-box-shadow": "5px 5px 7px rgba(0,0,0,.10), 0px 1px 0px rgba(255,255,255,.3) inset",
            "box-shadow": "5px 5px 7px rgba(0,0,0,.10), 0px 1px 0px rgba(255,255,255,.3) inset",
            position: "absolute",
            "z-index": 999
        }, !0);
        b(".jwclick div", {
            padding: "8px 21px",
            margin: "0px",
            "background-color": "#FFF",
            border: "none",
            "font-family": '"MS Sans Serif", "Geneva", sans-serif',
            "font-size": 10,
            color: "inherit"
        }, !0);
        b(".jwclick_item", {
            padding: "8px 21px",
            "text-align": "left",
            cursor: "pointer"
        }, !0);
        b(".jwclick_item:hover", {
            "background-color": "#595959",
            color: "#FFF"
        }, !0);
        b(".jwclick_item a", {
            "text-decoration": c,
            color: "#000"
        }, !0);
        b(".jwclick hr", {
            width: "100%",
            padding: 0,
            margin: 0,
            border: "1px #e9e9e9 solid"
        }, !0);
    })(jwplayer.html5);
    (function(f) {
        var g = jwplayer, b = g.utils, e = g.events, c = g.playlist, a = 2, d = 4;
        f.setup = function(g, j) {
            function h(a, b, c) {
                D.push({
                    name: a,
                    method: b,
                    depends: c
                });
            }
            function q() {
                for (var a = 0; a < D.length; a++) {
                    var b = D[a], c;
                    a: {
                        if (c = b.depends) {
                            c = c.toString().split(",");
                            for (var d = 0; d < c.length; d++) if (!l[c[d]]) {
                                c = !1;
                                break a;
                            }
                        }
                        c = !0;
                    }
                    if (c) {
                        D.splice(a, 1);
                        try {
                            b.method(), q();
                        } catch (e) {
                            k(e.message);
                        }
                        return;
                    }
                }
                0 < D.length && !w && setTimeout(q, 500);
            }
            function A() {
                l[a] = !0;
            }
            function n(a) {
                k("Error loading skin: " + a);
            }
            function y() {
                l[d] = !0;
            }
            function k(a) {
                w = !0;
                t.sendEvent(e.JWPLAYER_ERROR, {
                    message: a
                });
                p.setupError(a);
            }
            var p = j, l = {}, I, t = new e.eventdispatcher(), w = !1, D = [];
            b.extend(this, t);
            this.start = q;
            h(1, function() {
                g.edition && "invalid" == g.edition() ? k("Error setting up player: Invalid license key") : l[1] = !0;
            });
            h(a, function() {
                I = new f.skin();
                I.load(g.config.skin, A, n);
            }, 1);
            h(3, function() {
                switch (b.typeOf(g.config.playlist)) {
                  case "string":
                    k("Can't load a playlist as a string anymore");

                  case "array":
                    var a = new c(g.config.playlist);
                    g.setPlaylist(a);
                    0 == g.playlist[0].sources.length ? k("Error loading playlist: No playable sources found") : l[3] = !0;
                }
            }, 1);
            h(d, function() {
                var a = g.playlist[g.item].image;
                if (a) {
                    var b = new Image();
                    b.addEventListener("load", y, !1);
                    b.addEventListener("error", y, !1);
                    b.src = a;
                    setTimeout(y, 500);
                } else l[d] = !0;
            }, 3);
            h(5, function() {
                p.setup(I);
                l[5] = !0;
            }, d + "," + a);
            h(6, function() {
                l[6] = !0;
            }, "5,3");
            h(7, function() {
                t.sendEvent(e.JWPLAYER_READY);
                l[7] = !0;
            }, 6);
        };
    })(jwplayer.html5);
    (function(f) {
        f.skin = function() {
            var g = {}, b = !1;
            this.load = function(e, c, a) {
                new f.skinloader(e, function(a) {
                    b = !0;
                    g = a;
                    "function" == typeof c && c();
                }, function(b) {
                    "function" == typeof a && a(b);
                });
            };
            this.getSkinElement = function(e, c) {
                e = e.toLowerCase();
                c = c.toLowerCase();
                if (b) try {
                    return g[e].elements[c];
                } catch (a) {
                    jwplayer.utils.log("No such skin component / element: ", [ e, c ]);
                }
                return null;
            };
            this.getComponentSettings = function(e) {
                e = e.toLowerCase();
                return b && g && g[e] ? g[e].settings : null;
            };
            this.getComponentLayout = function(e) {
                e = e.toLowerCase();
                if (b) {
                    var c = g[e].layout;
                    if (c && (c.left || c.right || c.center)) return g[e].layout;
                }
                return null;
            };
        };
    })(jwplayer.html5);
    (function(f) {
        var g = jwplayer.utils, b = g.foreach, e = "Skin formatting error";
        f.skinloader = function(c, a, d) {
            function r(a) {
                y = a;
                g.ajax(g.getAbsolutePath(t), function(a) {
                    try {
                        g.exists(a.responseXML) && h(a.responseXML);
                    } catch (b) {
                        p(e);
                    }
                }, function(a) {
                    p(a);
                });
            }
            function j(a, b) {
                return a ? a.getElementsByTagName(b) : null;
            }
            function h(a) {
                var b = j(a, "skin")[0];
                a = j(b, "component");
                var c = b.getAttribute("target"), b = parseFloat(b.getAttribute("pixelratio"));
                0 < b && (x = b);
                (!c || parseFloat(c) > parseFloat(jwplayer.version)) && p("Incompatible player version");
                if (0 === a.length) k(y); else for (c = 0; c < a.length; c++) {
                    var d = n(a[c].getAttribute("name")), b = {
                        settings: {},
                        elements: {},
                        layout: {}
                    }, e = j(j(a[c], "elements")[0], "element");
                    y[d] = b;
                    for (var f = 0; f < e.length; f++) A(e[f], d);
                    if ((d = j(a[c], "settings")[0]) && 0 < d.childNodes.length) {
                        d = j(d, "setting");
                        for (e = 0; e < d.length; e++) {
                            var f = d[e].getAttribute("name"), h = d[e].getAttribute("value");
                            /color$/.test(f) && (h = g.stringToColor(h));
                            b.settings[n(f)] = h;
                        }
                    }
                    if ((d = j(a[c], "layout")[0]) && 0 < d.childNodes.length) {
                        d = j(d, "group");
                        for (e = 0; e < d.length; e++) {
                            h = d[e];
                            f = {
                                elements: []
                            };
                            b.layout[n(h.getAttribute("position"))] = f;
                            for (var r = 0; r < h.attributes.length; r++) {
                                var t = h.attributes[r];
                                f[t.name] = t.value;
                            }
                            h = j(h, "*");
                            for (r = 0; r < h.length; r++) {
                                t = h[r];
                                f.elements.push({
                                    type: t.tagName
                                });
                                for (var w = 0; w < t.attributes.length; w++) {
                                    var D = t.attributes[w];
                                    f.elements[r][n(D.name)] = D.value;
                                }
                                g.exists(f.elements[r].name) || (f.elements[r].name = t.tagName);
                            }
                        }
                    }
                    l = !1;
                    q();
                }
            }
            function q() {
                clearInterval(I);
                w || (I = setInterval(function() {
                    var a = !0;
                    b(y, function(c, d) {
                        "properties" != c && b(d.elements, function(b) {
                            (y[n(c)] ? y[n(c)].elements[n(b)] : null).ready || (a = !1);
                        });
                    });
                    a && !1 == l && (clearInterval(I), k(y));
                }, 100));
            }
            function A(a, b) {
                b = n(b);
                var c = new Image(), d = n(a.getAttribute("name")), e = a.getAttribute("src");
                if (0 !== e.indexOf("data:image/png;base64,")) var f = g.getAbsolutePath(t), e = [ f.substr(0, f.lastIndexOf("/")), b, e ].join("/");
                y[b].elements[d] = {
                    height: 0,
                    width: 0,
                    src: "",
                    ready: !1,
                    image: c
                };
                c.onload = function() {
                    var a = b, e = y[n(a)] ? y[n(a)].elements[n(d)] : null;
                    e ? (e.height = Math.round(c.height / x * D), e.width = Math.round(c.width / x * D), 
                    e.src = c.src, e.ready = !0, q()) : g.log("Loaded an image for a missing element: " + a + "." + d);
                };
                c.onerror = function() {
                    w = !0;
                    q();
                    p("Skin image not found: " + this.src);
                };
                c.src = e;
            }
            function n(a) {
                return a ? a.toLowerCase() : "";
            }
            var y = {}, k = a, p = d, l = !0, I, t = c, w = !1, D = (jwplayer.utils.isMobile(), 
            1), x = 1;
            "string" != typeof t || "" === t ? h(f.defaultskin().xml) : "xml" != g.extension(t) ? p("Skin not a valid file type") : new f.skinloader("", r, p);
        };
    })(jwplayer.html5);
    (function(f) {
        var g = jwplayer.utils, b = jwplayer.events, e = g.css;
        f.thumbs = function(c) {
            function a(a) {
                if ("array" == !g.typeOf(a)) return d("Invalid data");
                h = a;
                e("#" + A, {
                    display: "block"
                });
            }
            function d(a) {
                g.log("Thumbnails could not be loaded: " + a);
            }
            function f(a) {
                a = a.target;
                e("#" + A, {
                    "background-image": a.src,
                    "background-position": "0 0",
                    width: a.width,
                    height: a.height
                });
            }
            var j, h, q, A = c;
            c = new b.eventdispatcher();
            g.extend(this, c);
            this.load = function(b) {
                e("#" + A, {
                    display: "none"
                });
                b && (q = b.split("?")[0].split("/").slice(0, -1).join("/"), new jwplayer.parsers.srt(a, d, !0).load(b));
            };
            this.element = function() {
                return j;
            };
            this.updateTimeline = function(a) {
                var b = 0;
                if (h) {
                    for (;b < h.length && a > h[b].end; ) b++;
                    b == h.length && b--;
                    if (h[b].text) if (a = h[b].text, 0 > a.indexOf("://") && (a = q ? q + "/" + a : a), 
                    0 < a.indexOf("#xywh")) try {
                        var c = /(.+)\#xywh=(\d+),(\d+),(\d+),(\d+)/.exec(a), g = c[1];
                        e("#" + A, {
                            "background-image": g,
                            "background-position": -1 * c[2] + "px " + -1 * c[3] + "px",
                            width: c[4],
                            height: c[5]
                        });
                    } catch (j) {
                        d("Could not parse thumbnail");
                    } else g = new Image(), g.addEventListener("load", f, !1), g.src = a;
                }
            };
            j = document.createElement("div");
            j.id = A;
        };
    })(jwplayer.html5);
    (function(f) {
        var g = f.utils, b = f.events, e = b.state, c = !0, a = !1;
        f.html5.video = function(d) {
            function f(a, b) {
                O && E.sendEvent(a, b);
            }
            function j() {}
            function h() {
                O && C == e.PLAYING && !G && (v = Number(m.currentTime.toFixed(1)), f(b.JWPLAYER_MEDIA_TIME, {
                    position: v,
                    duration: s
                }));
            }
            function q(d) {
                O && (z || (z = c, A()), "loadedmetadata" == d.type && (m.muted && (m.muted = a, 
                m.muted = c), f(b.JWPLAYER_MEDIA_META, {
                    duration: m.duration,
                    height: m.videoHeight,
                    width: m.videoWidth
                })));
            }
            function A() {
                u || (u = c, f(b.JWPLAYER_MEDIA_BUFFER_FULL));
            }
            function n(a) {
                O && !G && (m.paused ? m.currentTime == m.duration && 3 < m.duration || da() : (!g.isFF() || !("play" == a.type && C == e.BUFFERING)) && l(e.PLAYING));
            }
            function y() {
                O && (G || l(e.BUFFERING));
            }
            function k(a) {
                var b;
                if ("array" == g.typeOf(a) && 0 < a.length) {
                    b = [];
                    for (var c = 0; c < a.length; c++) {
                        var d = a[c], e = {};
                        e.label = d.label && d.label ? d.label ? d.label : 0 : c;
                        b[c] = e;
                    }
                }
                return b;
            }
            function p() {
                u = z = a;
                x = U[J];
                l(e.BUFFERING);
                m.src = x.file;
                m.load();
                F = setInterval(I, 100);
                g.isMobile() && A();
            }
            function l(a) {
                if (!(a == e.PAUSED && C == e.IDLE) && !G && C != a) {
                    var c = C;
                    C = a;
                    f(b.JWPLAYER_PLAYER_STATE, {
                        oldstate: c,
                        newstate: a
                    });
                }
            }
            function I() {
                if (O) {
                    var a;
                    a = 0 == m.buffered.length || 0 == m.duration ? 0 : m.buffered.end(m.buffered.length - 1) / m.duration;
                    a != P && (P = a, f(b.JWPLAYER_MEDIA_BUFFER, {
                        bufferPercent: Math.round(100 * P)
                    }));
                    1 <= a && clearInterval(F);
                }
            }
            var t = g.isIE(), w = {
                abort: j,
                canplay: q,
                canplaythrough: j,
                durationchange: function() {
                    if (O) {
                        var a = Number(m.duration.toFixed(1));
                        s != a && (s = a);
                        Z && 0 < B && a > B && aa(B);
                        h();
                    }
                },
                emptied: j,
                ended: function() {
                    O && C != e.IDLE && (J = -1, Y = c, f(b.JWPLAYER_MEDIA_BEFORECOMPLETE), O && (l(e.IDLE), 
                    Y = a, f(b.JWPLAYER_MEDIA_COMPLETE)));
                },
                error: function() {
                    O && (g.log("Error playing media: %o", m.error), E.sendEvent(b.JWPLAYER_MEDIA_ERROR, {
                        message: "Error loading media: File could not be played"
                    }), l(e.IDLE));
                },
                loadeddata: j,
                loadedmetadata: q,
                loadstart: j,
                pause: n,
                play: n,
                playing: n,
                progress: function() {
                    z && 0 < B && !Z && (t ? setTimeout(function() {
                        aa(B);
                    }, 200) : aa(B));
                },
                ratechange: j,
                readystatechange: j,
                seeked: function() {
                    !G && C != e.PAUSED && l(e.PLAYING);
                },
                seeking: t ? y : j,
                stalled: j,
                suspend: j,
                timeupdate: h,
                volumechange: function() {
                    f(b.JWPLAYER_MEDIA_VOLUME, {
                        volume: Math.round(100 * m.volume)
                    });
                    f(b.JWPLAYER_MEDIA_MUTE, {
                        mute: m.muted
                    });
                },
                waiting: y
            }, D, x, m, s, v, z, u, B, G = a, C = e.IDLE, M, F = -1, P = -1, E = new b.eventdispatcher(), O = a, U, J = -1, Z = g.isAndroid(), Q = this, Y = a;
            g.extend(Q, E);
            Q.load = function(a) {
                if (O) {
                    D = a;
                    B = 0;
                    s = a.duration ? a.duration : -1;
                    v = 0;
                    U = D.sources;
                    0 > J && (J = 0);
                    for (a = 0; a < U.length; a++) if (U[a]["default"]) {
                        J = a;
                        break;
                    }
                    var c = g.getCookies().qualityLabel;
                    if (c) for (a = 0; a < U.length; a++) if (U[a].label == c) {
                        J = a;
                        break;
                    }
                    (a = k(U)) && E.sendEvent(b.JWPLAYER_MEDIA_LEVELS, {
                        levels: a,
                        currentQuality: J
                    });
                    p();
                }
            };
            Q.stop = function() {
                O && (m.removeAttribute("src"), t || m.load(), J = -1, clearInterval(F), l(e.IDLE));
            };
            Q.play = function() {
                O && !G && m.play();
            };
            var da = Q.pause = function() {
                O && (m.pause(), l(e.PAUSED));
            };
            Q.seekDrag = function(a) {
                O && ((G = a) ? m.pause() : m.play());
            };
            var aa = Q.seek = function(a) {
                O && (!G && 0 == B && f(b.JWPLAYER_MEDIA_SEEK, {
                    position: v,
                    offset: a
                }), z ? (B = 0, m.currentTime = a) : B = a);
            }, ga = Q.volume = function(a) {
                g.exists(a) && (m.volume = Math.min(Math.max(0, a / 100), 1), M = 100 * m.volume);
            };
            Q.mute = function(b) {
                g.exists(b) || (b = !m.muted);
                b ? (M = 100 * m.volume, m.muted = c) : (ga(M), m.muted = a);
            };
            this.checkComplete = function() {
                return Y;
            };
            Q.detachMedia = function() {
                O = a;
                return m;
            };
            Q.attachMedia = function(d) {
                O = c;
                d || (z = a);
                Y && (l(e.IDLE), f(b.JWPLAYER_MEDIA_COMPLETE), Y = a);
            };
            Q.getTag = function() {
                return m;
            };
            Q.audioMode = function() {
                if (!U) return a;
                var b = U[0].type;
                return "aac" == b || "mp3" == b || "vorbis" == b;
            };
            Q.setCurrentQuality = function(a) {
                J != a && (a = parseInt(a), 0 <= a && U && U.length > a && (J = a, g.saveCookie("qualityLabel", U[a].label), 
                f(b.JWPLAYER_MEDIA_LEVEL_CHANGED, {
                    currentQuality: a,
                    levels: k(U)
                }), a = m.currentTime, p(), Q.seek(a)));
            };
            Q.getCurrentQuality = function() {
                return J;
            };
            Q.getQualityLevels = function() {
                return k(U);
            };
            m = d;
            g.foreach(w, function(b, c) {
                m.addEventListener(b, c, a);
            });
            m.controls = c;
            m.controls = a;
            m.setAttribute("x-webkit-airplay", "allow");
            O = c;
        };
    })(jwplayer);
    (function(f) {
        var g = jwplayer.utils, b = jwplayer.events, e = b.state, c = g.css, a = g.isMobile(), d = g.isIPad(), r = g.isIPod(), j = g.isAndroid(), h = g.isIOS(), q = document, A = "aspectMode", n = "jwmain", y = "jwvideo", k = "jwplaylistcontainer", p = !0, l = !1, I = "hidden", t = "none", w = "block";
        f.view = function(D, x) {
            function m(a) {
                a && (a.element().addEventListener("mousemove", u, l), a.element().addEventListener("mouseout", B, l));
            }
            function s(a, b) {
                var c = q.createElement(a);
                b && (c.className = b);
                return c;
            }
            function v() {
                clearTimeout(ma);
                ma = setTimeout(Q, Ia);
            }
            function z() {
                clearTimeout(ma);
                if (X.jwGetState() == e.PAUSED || X.jwGetState() == e.PLAYING) Y(), ua || (ma = setTimeout(Q, Ia));
            }
            function u() {
                clearTimeout(ma);
                ua = p;
            }
            function B() {
                ua = l;
            }
            function G(a) {
                fa.sendEvent(a.type, a);
            }
            function C(a, d, e) {
                g.exists(e) || (e = p);
                g.exists(a) && g.exists(d) && (K.width = a, K.height = d);
                T.style.width = isNaN(a) ? a : a + "px";
                -1 == T.className.indexOf(A) && (T.style.height = isNaN(d) ? d : d + "px");
                V && V.redraw();
                R && R.redraw(p);
                H && (H.offset(R && 0 <= H.position().indexOf("bottom") ? R.height() + R.margin() : 0), 
                setTimeout(function() {
                    N && N.offset("top-left" == H.position() ? H.element().clientWidth + H.margin() : 0);
                }, 500));
                a = K.playlistsize;
                var f = K.playlistposition;
                M(d);
                if (Ea && a && ("right" == f || "bottom" == f)) {
                    Ea.redraw();
                    d = {
                        display: w
                    };
                    var h = {};
                    d[f] = 0;
                    h[f] = a;
                    "right" == f ? d.width = a : d.height = a;
                    c(qa(k), d);
                    c(qa(n), h);
                }
                F();
                e && fa.sendEvent(b.JWPLAYER_RESIZE);
            }
            function M(a) {
                var b = g.bounds(T);
                W = 0 < a.toString().indexOf("%") ? l : 0 == b.height ? l : "bottom" == K.playlistposition ? b.height <= 40 + K.playlistsize : 40 >= b.height;
                R && (W ? (R.audioMode(p), Y(), V.hidePreview(p), V && V.hide(), da(l)) : (R.audioMode(l), 
                ab(X.jwGetState())));
                H && W && H && H.hide(W);
                T.style.backgroundColor = W ? "transparent" : "#000";
            }
            function F() {
                ba && -1 == T.className.indexOf(A) && g.stretch(K.stretching, ba, ta.clientWidth, ta.clientHeight, ba.videoWidth, ba.videoHeight);
            }
            function P(a) {
                if (K.fullscreen) switch (a.keyCode) {
                  case 27:
                    Na(l);
                }
            }
            function E(a) {
                h || (a ? (T.className += " jwfullscreen", q.getElementsByTagName("body")[0].style["overflow-y"] = I) : (T.className = T.className.replace(/\s+jwfullscreen/, ""), 
                q.getElementsByTagName("body")[0].style["overflow-y"] = ""));
            }
            function O() {
                var a;
                a: {
                    a = [ q.mozFullScreenElement, q.webkitCurrentFullScreenElement, ba.webkitDisplayingFullscreen ];
                    for (var b = 0; b < a.length; b++) if (a[b] && (!a[b].id || a[b].id == X.id)) {
                        a = p;
                        break a;
                    }
                    a = l;
                }
                K.fullscreen != a && Na(a);
            }
            function U() {
                R && !W && R.hide();
            }
            function J() {
                N && !W && K.controls && N.show();
            }
            function Z() {
                V && K.controls && !W && (!r || X.jwGetState() == e.IDLE) && V.show();
                if (!a || !K.fullscreen) ba.controls = l;
            }
            function Q() {
                clearTimeout(ma);
                ma = 0;
                L = l;
                var a = X.jwGetState();
                (!x.controls || a != e.PAUSED) && U();
                x.controls || N && !wa && N.hide();
                a != e.IDLE && a != e.PAUSED && (N && !wa && N.hide(), H && H.hide(W));
            }
            function Y() {
                L = p;
                if ((K.controls || W) && !(r && La == e.PAUSED)) (!r || W) && R && R.show(), J();
                oa.hide && H && !W && H.show();
            }
            function da(a) {
                (a = a && !W) || j ? c(qa(y), {
                    visibility: "visible",
                    opacity: 1
                }) : c(qa(y), {
                    visibility: I,
                    opacity: 0
                });
            }
            function aa() {
                wa = p;
                Na(l);
                K.controls && J();
            }
            function ga() {}
            function ka(a) {
                wa = l;
                clearTimeout(Qa);
                Qa = setTimeout(function() {
                    ab(a.newstate);
                }, 100);
            }
            function la() {
                U();
            }
            function ab(b) {
                La = b;
                switch (b) {
                  case e.PLAYING:
                    K.getVideo().audioMode() ? (da(l), V.hidePreview(W), V.setHiding(p), R && R.hideFullscreen(p)) : (da(p), 
                    F(), V.hidePreview(p), R && R.hideFullscreen(l));
                    Q();
                    break;

                  case e.IDLE:
                    da(l);
                    W || (V.hidePreview(l), Z(), J(), H && !W && H.show(), R && R.hideFullscreen(l));
                    break;

                  case e.BUFFERING:
                    Z();
                    Q();
                    a && da(p);
                    break;

                  case e.PAUSED:
                    Z(), Y();
                }
            }
            function qa(a) {
                return "#" + X.id + (a ? " ." + a : "");
            }
            function Oa(a, b) {
                c(a, {
                    display: b ? w : t
                });
            }
            var X = D, K = x, T, va, ra, Va, Ya, ma = 0, Ia = a ? 4e3 : 2e3, ba, ta, Da, Ha, Ca, Ka = l, R, V, N, H, oa = g.extend({}, K.componentConfig("logo")), za, Ea, W, Ba = l, L = l, wa, S, ea, ua = l, La, fa = new b.eventdispatcher();
            g.extend(this, fa);
            this.getCurrentCaptions = function() {
                return za.getCurrentCaptions();
            };
            this.setCurrentCaptions = function(a) {
                za.setCurrentCaptions(a);
            };
            this.getCaptionsList = function() {
                return za.getCaptionsList();
            };
            this.setup = function(d) {
                if (!Ba) {
                    X.skin = d;
                    va = s("span", n);
                    ta = s("span", y);
                    ba = K.getVideo().getTag();
                    ta.appendChild(ba);
                    ra = s("span", "jwcontrols");
                    Da = s("span", "jwinstream");
                    Ya = s("span", k);
                    Va = s("span", "jwaspect");
                    d = K.height;
                    var h = K.componentConfig("controlbar"), j = K.componentConfig("display");
                    M(d);
                    za = new f.captions(X, K.captions);
                    za.addEventListener(b.JWPLAYER_CAPTIONS_LIST, G);
                    za.addEventListener(b.JWPLAYER_CAPTIONS_CHANGED, G);
                    ra.appendChild(za.element());
                    V = new f.display(X, j);
                    V.addEventListener(b.JWPLAYER_DISPLAY_CLICK, function(b) {
                        G(b);
                        a ? L ? Q() : Y() : ka(X.jwGetState());
                        L && (clearTimeout(ma), ma = setTimeout(Q, Ia));
                    });
                    W && V.hidePreview(p);
                    ra.appendChild(V.element());
                    H = new f.logo(X, oa);
                    ra.appendChild(H.element());
                    N = new f.dock(X, K.componentConfig("dock"));
                    ra.appendChild(N.element());
                    X.edition && !a ? S = new f.rightclick(X, {
                        abouttext: K.abouttext,
                        aboutlink: K.aboutlink
                    }) : a || (S = new f.rightclick(X, {}));
                    K.playlistsize && K.playlistposition && K.playlistposition != t && (Ea = new f.playlistcomponent(X, {}), 
                    Ya.appendChild(Ea.element()));
                    R = new f.controlbar(X, h);
                    R.addEventListener(b.JWPLAYER_USER_ACTION, v);
                    ra.appendChild(R.element());
                    r && U();
                    setTimeout(function() {
                        C(K.width, K.height, l);
                    }, 0);
                    va.appendChild(ta);
                    va.appendChild(ra);
                    va.appendChild(Da);
                    T.appendChild(va);
                    T.appendChild(Va);
                    T.appendChild(Ya);
                    q.addEventListener("webkitfullscreenchange", O, l);
                    ba.addEventListener("webkitbeginfullscreen", O, l);
                    ba.addEventListener("webkitendfullscreen", O, l);
                    q.addEventListener("mozfullscreenchange", O, l);
                    q.addEventListener("keydown", P, l);
                    X.jwAddEventListener(b.JWPLAYER_PLAYER_READY, ga);
                    X.jwAddEventListener(b.JWPLAYER_PLAYER_STATE, ka);
                    X.jwAddEventListener(b.JWPLAYER_MEDIA_ERROR, la);
                    X.jwAddEventListener(b.JWPLAYER_PLAYLIST_COMPLETE, aa);
                    ka({
                        newstate: e.IDLE
                    });
                    a || (ra.addEventListener("mouseout", function() {
                        clearTimeout(ma);
                        ma = setTimeout(Q, 10);
                    }, l), ra.addEventListener("mousemove", z, l), g.isIE() && (ta.addEventListener("mousemove", z, l), 
                    ta.addEventListener("click", V.clickHandler)));
                    m(R);
                    m(N);
                    m(H);
                    c("#" + T.id + "." + A + " .jwaspect", {
                        "margin-top": K.aspectratio,
                        display: w
                    });
                    d = g.exists(K.aspectratio) ? parseFloat(K.aspectratio) : 100;
                    h = K.playlistsize;
                    c("#" + T.id + ".playlist-right .jwaspect", {
                        "margin-bottom": -1 * h * (d / 100) + "px"
                    });
                    c("#" + T.id + ".playlist-right ." + k, {
                        width: h + "px",
                        right: 0,
                        top: 0,
                        height: "100%"
                    });
                    c("#" + T.id + ".playlist-bottom .jwaspect", {
                        "padding-bottom": h + "px"
                    });
                    c("#" + T.id + ".playlist-bottom ." + k, {
                        width: "100%",
                        height: h + "px",
                        bottom: 0
                    });
                    c("#" + T.id + ".playlist-right ." + n, {
                        right: h + "px"
                    });
                    c("#" + T.id + ".playlist-bottom ." + n, {
                        bottom: h + "px"
                    });
                }
            };
            var Na = this.fullscreen = function(c) {
                g.exists(c) || (c = !K.fullscreen);
                c ? a ? (ba.webkitEnterFullScreen(), K.setFullscreen(p)) : K.fullscreen || (E(p), 
                T.requestFullScreen ? T.requestFullScreen() : T.mozRequestFullScreen ? T.mozRequestFullScreen() : T.webkitRequestFullScreen && T.webkitRequestFullScreen(), 
                K.setFullscreen(p)) : (a ? (ba.webkitExitFullScreen(), K.setFullscreen(l), d && (ba.controls = p, 
                ba.controls = l)) : K.fullscreen && (E(l), K.setFullscreen(l), q.cancelFullScreen ? q.cancelFullScreen() : q.mozCancelFullScreen ? q.mozCancelFullScreen() : q.webkitCancelFullScreen && q.webkitCancelFullScreen()), 
                d && X.jwGetState() == e.PAUSED && setTimeout(Z, 500));
                R && R.redraw();
                V && V.redraw();
                N && N.redraw();
                F();
                K.fullscreen ? ea = setInterval(F, 200) : clearInterval(ea);
                setTimeout(function() {
                    var a = g.bounds(va);
                    K.width = a.width;
                    K.height = a.height;
                    fa.sendEvent(b.JWPLAYER_RESIZE);
                }, 0);
            };
            this.resize = C;
            this.resizeMedia = F;
            var na = this.completeSetup = function() {
                c(qa(), {
                    opacity: 1
                });
            }, Qa;
            this.setupInstream = function(a, b, c) {
                Oa(qa("jwinstream"), p);
                Oa(qa("jwcontrols"), l);
                Da.appendChild(a);
                Ha = b;
                Ca = c;
                ka({
                    newstate: e.PLAYING
                });
                Ka = p;
            };
            this.destroyInstream = function() {
                Oa(qa("jwinstream"), l);
                Oa(qa("jwcontrols"), p);
                Da.innerHTML = "";
                Ka = l;
            };
            this.setupError = function(a) {
                Ba = p;
                jwplayer.embed.errorScreen(T, a);
                na();
            };
            this.addButton = function(a, b, c, d) {
                N && N.addButton(a, b, c, d);
            };
            this.removeButton = function(a) {
                N && N.removeButton(a);
            };
            this.setControls = function(a) {
                var c = K.controls, d = a ? p : l;
                K.controls = d;
                d != c && (d ? ka({
                    newstate: X.jwGetState()
                }) : (Q(), V && V.hide()), Ka && (a ? (Ha.show(), Ca.show()) : (Ha.hide(), Ca.hide())), 
                fa.sendEvent(b.JWPLAYER_CONTROLS, {
                    controls: d
                }));
            };
            this.forceState = function(a) {
                V.forceState(a);
            };
            this.releaseState = function() {
                V.releaseState(X.jwGetState());
            };
            this.getSafeRegion = function() {
                var a = K.controls, b = g.bounds(va), c = b.top, d = g.bounds(R ? R.element() : null), e = 0 < N.numButtons(), f = g.bounds(N.element()), h = g.bounds(H.element()), j = 0 == H.position().indexOf("top"), e = Math.max(e ? f.top + f.height - c : 0, j ? h.top + h.height - c : 0), f = b.width, b = d.height ? (j ? d.top : h.top) - e - c : b.height - e;
                return {
                    x: 0,
                    y: a ? e : 0,
                    width: a ? f : 0,
                    height: a ? b : 0
                };
            };
            this.destroy = function() {
                q.removeEventListener("webkitfullscreenchange", O, l);
                q.removeEventListener("mozfullscreenchange", O, l);
                ba.removeEventListener("webkitbeginfullscreen", O, l);
                ba.removeEventListener("webkitendfullscreen", O, l);
                q.removeEventListener("keydown", P, l);
                S && S.destroy();
            };
            T = s("div", "jwplayer playlist-" + K.playlistposition);
            T.id = X.id;
            K.aspectratio && (c(".jwplayer", {
                display: "inline-block"
            }), T.className = T.className.replace("jwplayer", "jwplayer " + A));
            C(K.width, K.height);
            var Ma = document.getElementById(X.id);
            Ma.parentNode.replaceChild(T, Ma);
        };
        c(".jwplayer", {
            position: "relative",
            display: "block",
            opacity: 0,
            "min-height": 0,
            "-webkit-transition": "opacity .25s ease",
            "-moz-transition": "opacity .25s ease",
            "-o-transition": "opacity .25s ease"
        });
        c("." + n, {
            position: "absolute",
            left: 0,
            right: 0,
            top: 0,
            bottom: 0,
            "-webkit-transition": "opacity .25s ease",
            "-moz-transition": "opacity .25s ease",
            "-o-transition": "opacity .25s ease"
        });
        c("." + y + " ,.jwcontrols", {
            position: "absolute",
            height: "100%",
            width: "100%",
            "-webkit-transition": "opacity .25s ease",
            "-moz-transition": "opacity .25s ease",
            "-o-transition": "opacity .25s ease"
        });
        c("." + y, {
            overflow: I,
            visibility: I,
            opacity: 0,
            cursor: "pointer"
        });
        c("." + y + " video", {
            background: "transparent",
            width: "100%",
            height: "100%"
        });
        c("." + k, {
            position: "absolute",
            height: "100%",
            width: "100%",
            display: t
        });
        c(".jwinstream", {
            position: "absolute",
            top: 0,
            left: 0,
            bottom: 0,
            right: 0,
            display: "none"
        });
        c(".jwaspect", {
            display: "none"
        });
        c(".jwplayer." + A, {
            height: "auto"
        });
        c(".jwplayer.jwfullscreen", {
            width: "100%",
            height: "100%",
            left: 0,
            right: 0,
            top: 0,
            bottom: 0,
            "z-index": 1e3,
            position: "fixed"
        }, p);
        c(".jwplayer.jwfullscreen ." + n, {
            left: 0,
            right: 0,
            top: 0,
            bottom: 0
        }, p);
        c(".jwplayer.jwfullscreen ." + k, {
            display: t
        }, p);
        c(".jwplayer .jwuniform", {
            "background-size": "contain !important"
        });
        c(".jwplayer .jwfill", {
            "background-size": "cover !important",
            "background-position": "center"
        });
        c(".jwplayer .jwexactfit", {
            "background-size": "100% 100% !important"
        });
    })(jwplayer.html5);
    (function(f) {
        var g = jwplayer.utils.extend, b = f.logo, e;
        e = function(c, a) {
            "free" == c.edition() ? a = null : (b.defaults.file = "", b.defaults.prefix = "");
            g(this, new b(c, a));
        };
        e.defaults = {
            prefix: "",
            file: "%3D%3D"
        };
        g(e.defaults, b.defaults);
        f.logo = e;
    })(jwplayer.html5);
    (function(f) {
        var g = f.model;
        f.model = function(b, e) {
            var c = new jwplayer.utils.key(b.key), a = new g(b, e), d = a.componentConfig;
            a.edition = function() {
                return c.edition();
            };
            a.componentConfig = function(b) {
                return "logo" == b ? a.logo : d(b);
            };
            return a;
        };
    })(jwplayer.html5);
    (function(f) {
        f.player.prototype.edition = function() {
            return this._model.edition();
        };
    })(jwplayer.html5);
    (function(f) {
        var g = jwplayer.utils.extend, b = f.rightclick;
        f.rightclick = function(e, c) {
            if ("free" == e.edition()) c.aboutlink = "http://www.longtailvideo.com/jwpabout/?a=r&v=" + f.version + "&m=h&e=f", 
            delete c.abouttext; else {
                if (!c.aboutlink) {
                    var a = "http://www.longtailvideo.com/jwpabout/?a=r&v=" + f.version + "&m=h&e=", d = e.edition();
                    c.aboutlink = a + ("pro" == d ? "p" : "premium" == d ? "r" : "ads" == d ? "a" : "f");
                }
                c.abouttext ? c.abouttext = "About " + c.abouttext + " ..." : (a = e.edition(), 
                a = a.charAt(0).toUpperCase() + a.substr(1), c.abouttext = "About JW Player " + f.version + " (" + a + " edition)");
            }
            g(this, new b(e, c));
        };
    })(jwplayer.html5);
    (function(f) {
        var g = f.view;
        f.view = function(b, e) {
            var c = new g(b, e);
            "invalid" == e.edition() && c.setupError("Error setting up player: Invalid license key");
            return c;
        };
    })(jwplayer.html5);
    return jwplayer;
});

define("value/jwplayer/6.6.3896/jwplayer-debug", [], function(require, exports, module) {
    var jwplayer;
    jwplayer = function(d) {
        if (jwplayer.api) return jwplayer.api.selectPlayer(d);
    }, jwplayer.version = "6.6.3896", jwplayer.vid = document.createElement("video"), 
    jwplayer.audio = document.createElement("audio"), jwplayer.source = document.createElement("source"), 
    function(d) {
        function a(b) {
            return function() {
                return c(b);
            };
        }
        function k(b) {
            return function() {
                b("Error loading file");
            };
        }
        function f(m, a, e, g) {
            return function() {
                try {
                    var c = m.responseXML;
                    if (c && c.firstChild) return e(m);
                } catch (j) {}
                (c = b.parseXML(m.responseText)) && c.firstChild ? (m = b.extend({}, m, {
                    responseXML: c
                }), e(m)) : g && g(m.responseText ? "Invalid XML" : a);
            };
        }
        var h = document, e = window, j = navigator, b = d.utils = function() {};
        b.exists = function(b) {
            switch (typeof b) {
              case "string":
                return 0 < b.length;

              case "object":
                return null !== b;

              case "undefined":
                return !1;
            }
            return !0;
        };
        b.styleDimension = function(b) {
            return b + (0 < b.toString().indexOf("%") ? "" : "px");
        };
        b.getAbsolutePath = function(a, e) {
            b.exists(e) || (e = h.location.href);
            if (b.exists(a)) {
                var c;
                if (b.exists(a)) {
                    c = a.indexOf("://");
                    var g = a.indexOf("?");
                    c = 0 < c && (0 > g || g > c);
                } else c = void 0;
                if (c) return a;
                c = e.substring(0, e.indexOf("://") + 3);
                var g = e.substring(c.length, e.indexOf("/", c.length + 1)), j;
                0 === a.indexOf("/") ? j = a.split("/") : (j = e.split("?")[0], j = j.substring(c.length + g.length + 1, j.lastIndexOf("/")), 
                j = j.split("/").concat(a.split("/")));
                for (var f = [], t = 0; t < j.length; t++) j[t] && b.exists(j[t]) && "." != j[t] && (".." == j[t] ? f.pop() : f.push(j[t]));
                return c + g + "/" + f.join("/");
            }
        };
        b.extend = function() {
            var a = b.extend.arguments;
            if (1 < a.length) {
                for (var e = 1; e < a.length; e++) b.foreach(a[e], function(e, g) {
                    try {
                        b.exists(g) && (a[0][e] = g);
                    } catch (c) {}
                });
                return a[0];
            }
            return null;
        };
        b.log = function(b, a) {
            "undefined" != typeof console && "undefined" != typeof console.log && (a ? console.log(b, a) : console.log(b));
        };
        var c = b.userAgentMatch = function(b) {
            return null !== j.userAgent.toLowerCase().match(b);
        };
        b.isIE = a(/msie/i);
        b.isFF = a(/firefox/i);
        b.isChrome = a(/chrome/i);
        b.isIOS = a(/iP(hone|ad|od)/i);
        b.isIPod = a(/iP(hone|od)/i);
        b.isIPad = a(/iPad/i);
        b.isSafari602 = a(/Macintosh.*Mac OS X 10_8.*6\.0\.\d* Safari/i);
        b.isSafari = function() {
            return c(/safari/i) && !c(/chrome/i) && !c(/chromium/i) && !c(/android/i);
        };
        b.isAndroid = function(b) {
            return b ? c(RegExp("android.*" + b, "i")) : c(/android/i);
        };
        b.isMobile = function() {
            return b.isIOS() || b.isAndroid();
        };
        b.saveCookie = function(b, a) {
            h.cookie = "jwplayer." + b + "=" + a + "; path=/";
        };
        b.getCookies = function() {
            for (var b = {}, a = h.cookie.split("; "), e = 0; e < a.length; e++) {
                var g = a[e].split("=");
                0 == g[0].indexOf("jwplayer.") && (b[g[0].substring(9, g[0].length)] = g[1]);
            }
            return b;
        };
        b.typeOf = function(b) {
            var a = typeof b;
            return "object" === a ? !b ? "null" : b instanceof Array ? "array" : a : a;
        };
        b.translateEventResponse = function(a, e) {
            var c = b.extend({}, e);
            a == d.events.JWPLAYER_FULLSCREEN && !c.fullscreen ? (c.fullscreen = "true" == c.message ? !0 : !1, 
            delete c.message) : "object" == typeof c.data ? (c = b.extend(c, c.data), delete c.data) : "object" == typeof c.metadata && b.deepReplaceKeyName(c.metadata, [ "__dot__", "__spc__", "__dsh__", "__default__" ], [ ".", " ", "-", "default" ]);
            b.foreach([ "position", "duration", "offset" ], function(b, a) {
                c[a] && (c[a] = Math.round(1e3 * c[a]) / 1e3);
            });
            return c;
        };
        b.flashVersion = function() {
            if (b.isAndroid()) return 0;
            var a = j.plugins, c;
            try {
                if ("undefined" !== a && (c = a["Shockwave Flash"])) return parseInt(c.description.replace(/\D+(\d+)\..*/, "$1"));
            } catch (f) {}
            if ("undefined" != typeof e.ActiveXObject) try {
                if (c = new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) return parseInt(c.GetVariable("$version").split(" ")[1].split(",")[0]);
            } catch (g) {}
            return 0;
        };
        b.getScriptPath = function(b) {
            for (var a = h.getElementsByTagName("script"), c = 0; c < a.length; c++) {
                var g = a[c].src;
                if (g && 0 <= g.indexOf(b)) return g.substr(0, g.indexOf(b));
            }
            return "";
        };
        b.deepReplaceKeyName = function(a, c, e) {
            switch (d.utils.typeOf(a)) {
              case "array":
                for (var g = 0; g < a.length; g++) a[g] = d.utils.deepReplaceKeyName(a[g], c, e);
                break;

              case "object":
                b.foreach(a, function(b, g) {
                    var j;
                    if (c instanceof Array && e instanceof Array) {
                        if (c.length != e.length) return;
                        j = c;
                    } else j = [ c ];
                    for (var f = b, h = 0; h < j.length; h++) f = f.replace(RegExp(c[h], "g"), e[h]);
                    a[f] = d.utils.deepReplaceKeyName(g, c, e);
                    b != f && delete a[b];
                });
            }
            return a;
        };
        var n = b.pluginPathType = {
            ABSOLUTE: 0,
            RELATIVE: 1,
            CDN: 2
        };
        b.getPluginPathType = function(a) {
            if ("string" == typeof a) {
                a = a.split("?")[0];
                var c = a.indexOf("://");
                if (0 < c) return n.ABSOLUTE;
                var e = a.indexOf("/");
                a = b.extension(a);
                return 0 > c && 0 > e && (!a || !isNaN(a)) ? n.CDN : n.RELATIVE;
            }
        };
        b.getPluginName = function(b) {
            return b.replace(/^(.*\/)?([^-]*)-?.*\.(swf|js)$/, "$2");
        };
        b.getPluginVersion = function(b) {
            return b.replace(/[^-]*-?([^\.]*).*$/, "$1");
        };
        b.isYouTube = function(b) {
            return /^(http|\/\/).*(youtube\.com|youtu\.be)\/.+/.test(b);
        };
        b.youTubeID = function(b) {
            try {
                return /v[=\/]([^?&]*)|youtu\.be\/([^?]*)|^([\w-]*)$/i.exec(b).slice(1).join("").replace("?", "");
            } catch (a) {
                return "";
            }
        };
        b.isRtmp = function(b, a) {
            return 0 == b.indexOf("rtmp") || "rtmp" == a;
        };
        b.foreach = function(a, c) {
            var e, g;
            for (e in a) "function" == b.typeOf(a.hasOwnProperty) ? a.hasOwnProperty(e) && (g = a[e], 
            c(e, g)) : (g = a[e], c(e, g));
        };
        b.isHTTPS = function() {
            return 0 == e.location.href.indexOf("https");
        };
        b.repo = function() {
            var a = "http://p.jwpcdn.com/" + d.version.split(/\W/).splice(0, 2).join("/") + "/";
            try {
                b.isHTTPS() && (a = a.replace("http://", "https://ssl."));
            } catch (c) {}
            return a;
        };
        b.ajax = function(a, c, j) {
            var g;
            0 < a.indexOf("#") && (a = a.replace(/#.*$/, ""));
            var h;
            h = (h = a) && 0 <= h.indexOf("://") && h.split("/")[2] != e.location.href.split("/")[2] ? !0 : !1;
            if (h && b.exists(e.XDomainRequest)) g = new XDomainRequest(), g.onload = f(g, a, c, j), 
            g.onerror = k(j, a, g); else if (b.exists(e.XMLHttpRequest)) {
                var d = g = new XMLHttpRequest(), t = a;
                g.onreadystatechange = function() {
                    if (4 === d.readyState) switch (d.status) {
                      case 200:
                        f(d, t, c, j)();
                        break;

                      case 404:
                        j("File not found");
                    }
                };
                g.onerror = k(j, a);
            } else j && j();
            try {
                g.open("GET", a, !0), g.send(null);
            } catch (n) {
                j && j(a);
            }
            return g;
        };
        b.parseXML = function(b) {
            try {
                var a;
                if (e.DOMParser) {
                    a = new DOMParser().parseFromString(b, "text/xml");
                    try {
                        if ("parsererror" == a.childNodes[0].firstChild.nodeName) return;
                    } catch (c) {}
                } else a = new ActiveXObject("Microsoft.XMLDOM"), a.async = "false", a.loadXML(b);
                return a;
            } catch (g) {}
        };
        b.filterPlaylist = function(a, c) {
            for (var e = [], g = 0; g < a.length; g++) {
                var j = b.extend({}, a[g]);
                j.sources = b.filterSources(j.sources);
                if (0 < j.sources.length) {
                    for (var f = 0; f < j.sources.length; f++) {
                        var h = j.sources[f];
                        h.label || (h.label = f.toString());
                    }
                    e.push(j);
                }
            }
            if (c && 0 == e.length) for (g = 0; g < a.length; g++) if (j = b.extend({}, a[g]), 
            j.sources = b.filterSources(j.sources, !0), 0 < j.sources.length) {
                for (f = 0; f < j.sources.length; f++) h = j.sources[f], h.label || (h.label = f.toString());
                e.push(j);
            }
            return e;
        };
        b.filterSources = function(a, c) {
            var e, g, j = b.extensionmap;
            if (a) {
                g = [];
                for (var f = 0; f < a.length; f++) {
                    var h = a[f].type, n = a[f].file;
                    n && n.trim && (n = n.trim());
                    h || (h = j.extType(b.extension(n)), a[f].type = h);
                    c ? d.embed.flashCanPlay(n, h) && (e || (e = h), h == e && g.push(b.extend({}, a[f]))) : b.canPlayHTML5(h) && (e || (e = h), 
                    h == e && g.push(b.extend({}, a[f])));
                }
            }
            return g;
        };
        b.canPlayHTML5 = function(a) {
            if (b.isAndroid() && ("hls" == a || "m3u" == a || "m3u8" == a)) return !1;
            a = b.extensionmap.types[a];
            return !!a && !!d.vid.canPlayType && d.vid.canPlayType(a);
        };
        b.seconds = function(a) {
            a = a.replace(",", ".");
            var b = a.split(":"), c = 0;
            "s" == a.substr(-1) ? c = Number(a.substr(0, a.length - 1)) : "m" == a.substr(-1) ? c = 60 * Number(a.substr(0, a.length - 1)) : "h" == a.substr(-1) ? c = 3600 * Number(a.substr(0, a.length - 1)) : 1 < b.length ? (c = Number(b[b.length - 1]), 
            c += 60 * Number(b[b.length - 2]), 3 == b.length && (c += 3600 * Number(b[b.length - 3]))) : c = Number(a);
            return c;
        };
        b.serialize = function(a) {
            return null == a ? null : "true" == a.toString().toLowerCase() ? !0 : "false" == a.toString().toLowerCase() ? !1 : isNaN(Number(a)) || 5 < a.length || 0 == a.length ? a : Number(a);
        };
    }(jwplayer), function(d) {
        var a = "video/", k = d.foreach, f = {
            mp4: a + "mp4",
            vorbis: "audio/ogg",
            ogg: a + "ogg",
            webm: a + "webm",
            aac: "audio/mp4",
            mp3: "audio/mpeg",
            hls: "application/vnd.apple.mpegurl"
        }, h = {
            mp4: f.mp4,
            f4v: f.mp4,
            m4v: f.mp4,
            mov: f.mp4,
            m4a: f.aac,
            f4a: f.aac,
            aac: f.aac,
            mp3: f.mp3,
            ogv: f.ogg,
            ogg: f.vorbis,
            oga: f.vorbis,
            webm: f.webm,
            m3u8: f.hls,
            hls: f.hls
        }, a = "video", a = {
            flv: a,
            f4v: a,
            mov: a,
            m4a: a,
            m4v: a,
            mp4: a,
            aac: a,
            f4a: a,
            mp3: "sound",
            smil: "rtmp",
            m3u8: "hls",
            hls: "hls"
        }, e = d.extensionmap = {};
        k(h, function(a, b) {
            e[a] = {
                html5: b
            };
        });
        k(a, function(a, b) {
            e[a] || (e[a] = {});
            e[a].flash = b;
        });
        e.types = f;
        e.mimeType = function(a) {
            var b;
            k(f, function(c, e) {
                !b && e == a && (b = c);
            });
            return b;
        };
        e.extType = function(a) {
            return e.mimeType(h[a]);
        };
    }(jwplayer.utils), function(d) {
        var a = d.loaderstatus = {
            NEW: 0,
            LOADING: 1,
            ERROR: 2,
            COMPLETE: 3
        }, k = document;
        d.scriptloader = function(f) {
            function h() {
                j = a.ERROR;
                c.sendEvent(b.ERROR);
            }
            function e() {
                j = a.COMPLETE;
                c.sendEvent(b.COMPLETE);
            }
            var j = a.NEW, b = jwplayer.events, c = new b.eventdispatcher();
            d.extend(this, c);
            this.load = function() {
                var c = d.scriptloader.loaders[f];
                if (c && (c.getStatus() == a.NEW || c.getStatus() == a.LOADING)) c.addEventListener(b.ERROR, h), 
                c.addEventListener(b.COMPLETE, e); else if (d.scriptloader.loaders[f] = this, j == a.NEW) {
                    j = a.LOADING;
                    var m = k.createElement("script");
                    m.addEventListener ? (m.onload = e, m.onerror = h) : m.readyState && (m.onreadystatechange = function() {
                        ("loaded" == m.readyState || "complete" == m.readyState) && e();
                    });
                    k.getElementsByTagName("head")[0].appendChild(m);
                    m.src = f;
                }
            };
            this.getStatus = function() {
                return j;
            };
        };
        d.scriptloader.loaders = {};
    }(jwplayer.utils), function(d) {
        d.trim = function(a) {
            return a.replace(/^\s*/, "").replace(/\s*$/, "");
        };
        d.pad = function(a, d, f) {
            for (f || (f = "0"); a.length < d; ) a = f + a;
            return a;
        };
        d.xmlAttribute = function(a, d) {
            for (var f = 0; f < a.attributes.length; f++) if (a.attributes[f].name && a.attributes[f].name.toLowerCase() == d.toLowerCase()) return a.attributes[f].value.toString();
            return "";
        };
        d.extension = function(a) {
            if (!a || "rtmp" == a.substr(0, 4)) return "";
            a = a.substring(a.lastIndexOf("/") + 1, a.length).split("?")[0].split("#")[0];
            if (-1 < a.lastIndexOf(".")) return a.substr(a.lastIndexOf(".") + 1, a.length).toLowerCase();
        };
        d.stringToColor = function(a) {
            a = a.replace(/(#|0x)?([0-9A-F]{3,6})$/gi, "$2");
            3 == a.length && (a = a.charAt(0) + a.charAt(0) + a.charAt(1) + a.charAt(1) + a.charAt(2) + a.charAt(2));
            return parseInt(a, 16);
        };
    }(jwplayer.utils), function(d) {
        var a = "touchmove", k = "touchstart";
        d.touch = function(f) {
            function h(b) {
                b.type == k ? (c = !0, m = j(l.DRAG_START, b)) : b.type == a ? c && (p || (e(l.DRAG_START, b, m), 
                p = !0), e(l.DRAG, b)) : (c && (p ? e(l.DRAG_END, b) : (b.cancelBubble = !0, e(l.TAP, b))), 
                c = p = !1, m = null);
            }
            function e(a, b, c) {
                if (n[a] && (b.preventManipulation && b.preventManipulation(), b.preventDefault && b.preventDefault(), 
                b = c ? c : j(a, b))) n[a](b);
            }
            function j(a, c) {
                var e = null;
                c.touches && c.touches.length ? e = c.touches[0] : c.changedTouches && c.changedTouches.length && (e = c.changedTouches[0]);
                if (!e) return null;
                var j = b.getBoundingClientRect(), e = {
                    type: a,
                    target: b,
                    x: e.pageX - window.pageXOffset - j.left,
                    y: e.pageY,
                    deltaX: 0,
                    deltaY: 0
                };
                a != l.TAP && m && (e.deltaX = e.x - m.x, e.deltaY = e.y - m.y);
                return e;
            }
            var b = f, c = !1, n = {}, m = null, p = !1, l = d.touchEvents;
            document.addEventListener(a, h);
            document.addEventListener("touchend", function(a) {
                c && p && e(l.DRAG_END, a);
                c = p = !1;
                m = null;
            });
            document.addEventListener("touchcancel", h);
            f.addEventListener(k, h);
            f.addEventListener("touchend", h);
            this.addEventListener = function(a, b) {
                n[a] = b;
            };
            this.removeEventListener = function(a) {
                delete n[a];
            };
            return this;
        };
    }(jwplayer.utils), function(d) {
        d.touchEvents = {
            DRAG: "jwplayerDrag",
            DRAG_START: "jwplayerDragStart",
            DRAG_END: "jwplayerDragEnd",
            TAP: "jwplayerTap"
        };
    }(jwplayer.utils), function(d) {
        d.key = function(a) {
            var k, f, h;
            this.edition = function() {
                return h && h.getTime() < new Date().getTime() ? "invalid" : k;
            };
            this.token = function() {
                return f;
            };
            d.exists(a) || (a = "");
            try {
                a = d.tea.decrypt(a, "36QXq4W@GSBV^teR");
                var e = a.split("/");
                (k = e[0]) ? /^(free|pro|premium|ads)$/i.test(k) ? (f = e[1], e[2] && 0 < parseInt(e[2]) && (h = new Date(), 
                h.setTime(String(e[2])))) : k = "invalid" : k = "free";
            } catch (j) {
                k = "invalid";
            }
        };
    }(jwplayer.utils), function(d) {
        var a = d.tea = {};
        a.encrypt = function(h, e) {
            if (0 == h.length) return "";
            var j = a.strToLongs(f.encode(h));
            1 >= j.length && (j[1] = 0);
            for (var b = a.strToLongs(f.encode(e).slice(0, 16)), c = j.length, d = j[c - 1], m = j[0], p, l = Math.floor(6 + 52 / c), g = 0; 0 < l--; ) {
                g += 2654435769;
                p = g >>> 2 & 3;
                for (var q = 0; q < c; q++) m = j[(q + 1) % c], d = (d >>> 5 ^ m << 2) + (m >>> 3 ^ d << 4) ^ (g ^ m) + (b[q & 3 ^ p] ^ d), 
                d = j[q] += d;
            }
            j = a.longsToStr(j);
            return k.encode(j);
        };
        a.decrypt = function(h, e) {
            if (0 == h.length) return "";
            for (var j = a.strToLongs(k.decode(h)), b = a.strToLongs(f.encode(e).slice(0, 16)), c = j.length, d = j[c - 1], m = j[0], p, l = 2654435769 * Math.floor(6 + 52 / c); 0 != l; ) {
                p = l >>> 2 & 3;
                for (var g = c - 1; 0 <= g; g--) d = j[0 < g ? g - 1 : c - 1], d = (d >>> 5 ^ m << 2) + (m >>> 3 ^ d << 4) ^ (l ^ m) + (b[g & 3 ^ p] ^ d), 
                m = j[g] -= d;
                l -= 2654435769;
            }
            j = a.longsToStr(j);
            j = j.replace(/\0+$/, "");
            return f.decode(j);
        };
        a.strToLongs = function(a) {
            for (var e = Array(Math.ceil(a.length / 4)), j = 0; j < e.length; j++) e[j] = a.charCodeAt(4 * j) + (a.charCodeAt(4 * j + 1) << 8) + (a.charCodeAt(4 * j + 2) << 16) + (a.charCodeAt(4 * j + 3) << 24);
            return e;
        };
        a.longsToStr = function(a) {
            for (var e = Array(a.length), j = 0; j < a.length; j++) e[j] = String.fromCharCode(a[j] & 255, a[j] >>> 8 & 255, a[j] >>> 16 & 255, a[j] >>> 24 & 255);
            return e.join("");
        };
        var k = {
            code: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
            encode: function(a, e) {
                var j, b, c, d, m = [], p = "", l, g, q = k.code;
                g = ("undefined" == typeof e ? 0 : e) ? f.encode(a) : a;
                l = g.length % 3;
                if (0 < l) for (;3 > l++; ) p += "=", g += "\0";
                for (l = 0; l < g.length; l += 3) j = g.charCodeAt(l), b = g.charCodeAt(l + 1), 
                c = g.charCodeAt(l + 2), d = j << 16 | b << 8 | c, j = d >> 18 & 63, b = d >> 12 & 63, 
                c = d >> 6 & 63, d &= 63, m[l / 3] = q.charAt(j) + q.charAt(b) + q.charAt(c) + q.charAt(d);
                m = m.join("");
                return m = m.slice(0, m.length - p.length) + p;
            },
            decode: function(a, e) {
                e = "undefined" == typeof e ? !1 : e;
                var j, b, c, d, m, p = [], l, g = k.code;
                l = e ? f.decode(a) : a;
                for (var q = 0; q < l.length; q += 4) j = g.indexOf(l.charAt(q)), b = g.indexOf(l.charAt(q + 1)), 
                d = g.indexOf(l.charAt(q + 2)), m = g.indexOf(l.charAt(q + 3)), c = j << 18 | b << 12 | d << 6 | m, 
                j = c >>> 16 & 255, b = c >>> 8 & 255, c &= 255, p[q / 4] = String.fromCharCode(j, b, c), 
                64 == m && (p[q / 4] = String.fromCharCode(j, b)), 64 == d && (p[q / 4] = String.fromCharCode(j));
                d = p.join("");
                return e ? f.decode(d) : d;
            }
        }, f = {
            encode: function(a) {
                a = a.replace(/[\u0080-\u07ff]/g, function(a) {
                    a = a.charCodeAt(0);
                    return String.fromCharCode(192 | a >> 6, 128 | a & 63);
                });
                return a = a.replace(/[\u0800-\uffff]/g, function(a) {
                    a = a.charCodeAt(0);
                    return String.fromCharCode(224 | a >> 12, 128 | a >> 6 & 63, 128 | a & 63);
                });
            },
            decode: function(a) {
                a = a.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g, function(a) {
                    a = (a.charCodeAt(0) & 15) << 12 | (a.charCodeAt(1) & 63) << 6 | a.charCodeAt(2) & 63;
                    return String.fromCharCode(a);
                });
                return a = a.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g, function(a) {
                    a = (a.charCodeAt(0) & 31) << 6 | a.charCodeAt(1) & 63;
                    return String.fromCharCode(a);
                });
            }
        };
    }(jwplayer.utils), function(d) {
        d.events = {
            COMPLETE: "COMPLETE",
            ERROR: "ERROR",
            API_READY: "jwplayerAPIReady",
            JWPLAYER_READY: "jwplayerReady",
            JWPLAYER_FULLSCREEN: "jwplayerFullscreen",
            JWPLAYER_RESIZE: "jwplayerResize",
            JWPLAYER_ERROR: "jwplayerError",
            JWPLAYER_SETUP_ERROR: "jwplayerSetupError",
            JWPLAYER_MEDIA_BEFOREPLAY: "jwplayerMediaBeforePlay",
            JWPLAYER_MEDIA_BEFORECOMPLETE: "jwplayerMediaBeforeComplete",
            JWPLAYER_COMPONENT_SHOW: "jwplayerComponentShow",
            JWPLAYER_COMPONENT_HIDE: "jwplayerComponentHide",
            JWPLAYER_MEDIA_BUFFER: "jwplayerMediaBuffer",
            JWPLAYER_MEDIA_BUFFER_FULL: "jwplayerMediaBufferFull",
            JWPLAYER_MEDIA_ERROR: "jwplayerMediaError",
            JWPLAYER_MEDIA_LOADED: "jwplayerMediaLoaded",
            JWPLAYER_MEDIA_COMPLETE: "jwplayerMediaComplete",
            JWPLAYER_MEDIA_SEEK: "jwplayerMediaSeek",
            JWPLAYER_MEDIA_TIME: "jwplayerMediaTime",
            JWPLAYER_MEDIA_VOLUME: "jwplayerMediaVolume",
            JWPLAYER_MEDIA_META: "jwplayerMediaMeta",
            JWPLAYER_MEDIA_MUTE: "jwplayerMediaMute",
            JWPLAYER_MEDIA_LEVELS: "jwplayerMediaLevels",
            JWPLAYER_MEDIA_LEVEL_CHANGED: "jwplayerMediaLevelChanged",
            JWPLAYER_CAPTIONS_CHANGED: "jwplayerCaptionsChanged",
            JWPLAYER_CAPTIONS_LIST: "jwplayerCaptionsList",
            JWPLAYER_PLAYER_STATE: "jwplayerPlayerState",
            state: {
                BUFFERING: "BUFFERING",
                IDLE: "IDLE",
                PAUSED: "PAUSED",
                PLAYING: "PLAYING"
            },
            JWPLAYER_PLAYLIST_LOADED: "jwplayerPlaylistLoaded",
            JWPLAYER_PLAYLIST_ITEM: "jwplayerPlaylistItem",
            JWPLAYER_PLAYLIST_COMPLETE: "jwplayerPlaylistComplete",
            JWPLAYER_DISPLAY_CLICK: "jwplayerViewClick",
            JWPLAYER_CONTROLS: "jwplayerViewControls",
            JWPLAYER_USER_ACTION: "jwplayerUserAction",
            JWPLAYER_INSTREAM_CLICK: "jwplayerInstreamClicked",
            JWPLAYER_INSTREAM_DESTROYED: "jwplayerInstreamDestroyed",
            JWPLAYER_AD_TIME: "jwplayerAdTime",
            JWPLAYER_AD_ERROR: "jwplayerAdError",
            JWPLAYER_AD_CLICK: "jwplayerAdClicked",
            JWPLAYER_AD_COMPLETE: "jwplayerAdComplete",
            JWPLAYER_AD_IMPRESSION: "jwplayerAdImpression",
            JWPLAYER_AD_COMPANIONS: "jwplayerAdCompanions"
        };
    }(jwplayer), function(d) {
        var a = jwplayer.utils;
        d.eventdispatcher = function(d, f) {
            var h, e;
            this.resetEventListeners = function() {
                h = {};
                e = [];
            };
            this.resetEventListeners();
            this.addEventListener = function(e, b, c) {
                try {
                    a.exists(h[e]) || (h[e] = []), "string" == a.typeOf(b) && (b = new Function("return " + b)()), 
                    h[e].push({
                        listener: b,
                        count: c
                    });
                } catch (f) {
                    a.log("error", f);
                }
                return !1;
            };
            this.removeEventListener = function(e, b) {
                if (h[e]) {
                    try {
                        for (var c = 0; c < h[e].length; c++) if (h[e][c].listener.toString() == b.toString()) {
                            h[e].splice(c, 1);
                            break;
                        }
                    } catch (f) {
                        a.log("error", f);
                    }
                    return !1;
                }
            };
            this.addGlobalListener = function(f, b) {
                try {
                    "string" == a.typeOf(f) && (f = new Function("return " + f)()), e.push({
                        listener: f,
                        count: b
                    });
                } catch (c) {
                    a.log("error", c);
                }
                return !1;
            };
            this.removeGlobalListener = function(f) {
                if (f) {
                    try {
                        for (var b = 0; b < e.length; b++) if (e[b].listener.toString() == f.toString()) {
                            e.splice(b, 1);
                            break;
                        }
                    } catch (c) {
                        a.log("error", c);
                    }
                    return !1;
                }
            };
            this.sendEvent = function(j, b) {
                a.exists(b) || (b = {});
                a.extend(b, {
                    id: d,
                    version: jwplayer.version,
                    type: j
                });
                f && a.log(j, b);
                if ("undefined" != a.typeOf(h[j])) for (var c = 0; c < h[j].length; c++) {
                    try {
                        h[j][c].listener(b);
                    } catch (n) {
                        a.log("There was an error while handling a listener: " + n.toString(), h[j][c].listener);
                    }
                    h[j][c] && (1 === h[j][c].count ? delete h[j][c] : 0 < h[j][c].count && (h[j][c].count -= 1));
                }
                for (c = 0; c < e.length; c++) {
                    try {
                        e[c].listener(b);
                    } catch (m) {
                        a.log("There was an error while handling a listener: " + m.toString(), e[c].listener);
                    }
                    e[c] && (1 === e[c].count ? delete e[c] : 0 < e[c].count && (e[c].count -= 1));
                }
            };
        };
    }(jwplayer.events), function(d) {
        var a = {}, k = {};
        d.plugins = function() {};
        d.plugins.loadPlugins = function(f, h) {
            k[f] = new d.plugins.pluginloader(new d.plugins.model(a), h);
            return k[f];
        };
        d.plugins.registerPlugin = function(f, h, e, j) {
            var b = d.utils.getPluginName(f);
            a[b] || (a[b] = new d.plugins.plugin(f));
            a[b].registerPlugin(f, h, e, j);
        };
    }(jwplayer), function(d) {
        d.plugins.model = function(a) {
            this.addPlugin = function(k) {
                var f = d.utils.getPluginName(k);
                a[f] || (a[f] = new d.plugins.plugin(k));
                return a[f];
            };
            this.getPlugins = function() {
                return a;
            };
        };
    }(jwplayer), function(d) {
        var a = jwplayer.utils, k = jwplayer.events;
        d.pluginmodes = {
            FLASH: 0,
            JAVASCRIPT: 1,
            HYBRID: 2
        };
        d.plugin = function(f) {
            function h() {
                switch (a.getPluginPathType(f)) {
                  case a.pluginPathType.ABSOLUTE:
                    return f;

                  case a.pluginPathType.RELATIVE:
                    return a.getAbsolutePath(f, window.location.href);
                }
            }
            function e() {
                p = setTimeout(function() {
                    b = a.loaderstatus.COMPLETE;
                    l.sendEvent(k.COMPLETE);
                }, 1e3);
            }
            function j() {
                b = a.loaderstatus.ERROR;
                l.sendEvent(k.ERROR);
            }
            var b = a.loaderstatus.NEW, c, n, m, p, l = new k.eventdispatcher();
            a.extend(this, l);
            this.load = function() {
                if (b == a.loaderstatus.NEW) if (0 < f.lastIndexOf(".swf")) c = f, b = a.loaderstatus.COMPLETE, 
                l.sendEvent(k.COMPLETE); else if (a.getPluginPathType(f) == a.pluginPathType.CDN) b = a.loaderstatus.COMPLETE, 
                l.sendEvent(k.COMPLETE); else {
                    b = a.loaderstatus.LOADING;
                    var g = new a.scriptloader(h());
                    g.addEventListener(k.COMPLETE, e);
                    g.addEventListener(k.ERROR, j);
                    g.load();
                }
            };
            this.registerPlugin = function(e, f, j, d) {
                p && (clearTimeout(p), p = void 0);
                m = f;
                j && d ? (c = d, n = j) : "string" == typeof j ? c = j : "function" == typeof j ? n = j : !j && !d && (c = e);
                b = a.loaderstatus.COMPLETE;
                l.sendEvent(k.COMPLETE);
            };
            this.getStatus = function() {
                return b;
            };
            this.getPluginName = function() {
                return a.getPluginName(f);
            };
            this.getFlashPath = function() {
                if (c) switch (a.getPluginPathType(c)) {
                  case a.pluginPathType.ABSOLUTE:
                    return c;

                  case a.pluginPathType.RELATIVE:
                    return 0 < f.lastIndexOf(".swf") ? a.getAbsolutePath(c, window.location.href) : a.getAbsolutePath(c, h());
                }
                return null;
            };
            this.getJS = function() {
                return n;
            };
            this.getTarget = function() {
                return m;
            };
            this.getPluginmode = function() {
                if ("undefined" != typeof c && "undefined" != typeof n) return d.pluginmodes.HYBRID;
                if ("undefined" != typeof c) return d.pluginmodes.FLASH;
                if ("undefined" != typeof n) return d.pluginmodes.JAVASCRIPT;
            };
            this.getNewInstance = function(a, b, c) {
                return new n(a, b, c);
            };
            this.getURL = function() {
                return f;
            };
        };
    }(jwplayer.plugins), function(d) {
        var a = d.utils, k = d.events, f = a.foreach;
        d.plugins.pluginloader = function(h, e) {
            function j() {
                m ? g.sendEvent(k.ERROR, {
                    message: p
                }) : n || (n = !0, c = a.loaderstatus.COMPLETE, g.sendEvent(k.COMPLETE));
            }
            function b() {
                l || j();
                if (!n && !m) {
                    var b = 0, c = h.getPlugins();
                    a.foreach(l, function(e) {
                        e = a.getPluginName(e);
                        var f = c[e];
                        e = f.getJS();
                        var g = f.getTarget(), f = f.getStatus();
                        if (f == a.loaderstatus.LOADING || f == a.loaderstatus.NEW) b++; else if (e && (!g || parseFloat(g) > parseFloat(d.version))) m = !0, 
                        p = "Incompatible player version", j();
                    });
                    0 == b && j();
                }
            }
            var c = a.loaderstatus.NEW, n = !1, m = !1, p, l = e, g = new k.eventdispatcher();
            a.extend(this, g);
            this.setupPlugins = function(b, c, e) {
                var g = {
                    length: 0,
                    plugins: {}
                }, j = 0, d = {}, n = h.getPlugins();
                f(c.plugins, function(f, h) {
                    var k = a.getPluginName(f), l = n[k], m = l.getFlashPath(), q = l.getJS(), p = l.getURL();
                    m && (g.plugins[m] = a.extend({}, h), g.plugins[m].pluginmode = l.getPluginmode(), 
                    g.length++);
                    try {
                        if (q && c.plugins && c.plugins[p]) {
                            var A = document.createElement("div");
                            A.id = b.id + "_" + k;
                            A.style.position = "absolute";
                            A.style.top = 0;
                            A.style.zIndex = j + 10;
                            d[k] = l.getNewInstance(b, a.extend({}, c.plugins[p]), A);
                            j++;
                            b.onReady(e(d[k], A, !0));
                            b.onResize(e(d[k], A));
                        }
                    } catch (D) {
                        a.log("ERROR: Failed to load " + k + ".");
                    }
                });
                b.plugins = d;
                return g;
            };
            this.load = function() {
                if (!(a.exists(e) && "object" != a.typeOf(e))) {
                    c = a.loaderstatus.LOADING;
                    f(e, function(c) {
                        a.exists(c) && (c = h.addPlugin(c), c.addEventListener(k.COMPLETE, b), c.addEventListener(k.ERROR, q));
                    });
                    var g = h.getPlugins();
                    f(g, function(a, b) {
                        b.load();
                    });
                }
                b();
            };
            var q = this.pluginFailed = function() {
                m || (m = !0, p = "File not found", j());
            };
            this.getStatus = function() {
                return c;
            };
        };
    }(jwplayer), function() {
        jwplayer.parsers = {
            localName: function(d) {
                return d ? d.localName ? d.localName : d.baseName ? d.baseName : "" : "";
            },
            textContent: function(d) {
                return d ? d.textContent ? d.textContent : d.text ? d.text : "" : "";
            },
            getChildNode: function(d, a) {
                return d.childNodes[a];
            },
            numChildren: function(d) {
                return d.childNodes ? d.childNodes.length : 0;
            }
        };
    }(jwplayer), function(d) {
        var a = d.parsers;
        (a.jwparser = function() {}).parseEntry = function(k, f) {
            for (var h = [], e = [], j = d.utils.xmlAttribute, b = 0; b < k.childNodes.length; b++) {
                var c = k.childNodes[b];
                if ("jwplayer" == c.prefix) {
                    var n = a.localName(c);
                    "source" == n ? (delete f.sources, h.push({
                        file: j(c, "file"),
                        "default": j(c, "default"),
                        label: j(c, "label"),
                        type: j(c, "type")
                    })) : "track" == n ? (delete f.tracks, e.push({
                        file: j(c, "file"),
                        "default": j(c, "default"),
                        kind: j(c, "kind"),
                        label: j(c, "label")
                    })) : (f[n] = d.utils.serialize(a.textContent(c)), "file" == n && f.sources && delete f.sources);
                }
                f.file || (f.file = f.link);
            }
            if (h.length) {
                f.sources = [];
                for (b = 0; b < h.length; b++) 0 < h[b].file.length && (h[b]["default"] = "true" == h[b]["default"] ? !0 : !1, 
                h[b].label.length || delete h[b].label, f.sources.push(h[b]));
            }
            if (e.length) {
                f.tracks = [];
                for (b = 0; b < e.length; b++) 0 < e[b].file.length && (e[b]["default"] = "true" == e[b]["default"] ? !0 : !1, 
                e[b].kind = !e[b].kind.length ? "captions" : e[b].kind, e[b].label.length || delete e[b].label, 
                f.tracks.push(e[b]));
            }
            return f;
        };
    }(jwplayer), function(d) {
        var a = jwplayer.utils, k = a.xmlAttribute, f = d.localName, h = d.textContent, e = d.numChildren, j = d.mediaparser = function() {};
        j.parseGroup = function(b, c) {
            var d, m, p = [];
            for (m = 0; m < e(b); m++) if (d = b.childNodes[m], "media" == d.prefix && f(d)) switch (f(d).toLowerCase()) {
              case "content":
                k(d, "duration") && (c.duration = a.seconds(k(d, "duration")));
                0 < e(d) && (c = j.parseGroup(d, c));
                k(d, "url") && (c.sources || (c.sources = []), c.sources.push({
                    file: k(d, "url"),
                    type: k(d, "type"),
                    width: k(d, "width"),
                    label: k(d, "label")
                }));
                break;

              case "title":
                c.title = h(d);
                break;

              case "description":
                c.description = h(d);
                break;

              case "guid":
                c.mediaid = h(d);
                break;

              case "thumbnail":
                c.image || (c.image = k(d, "url"));
                break;

              case "group":
                j.parseGroup(d, c);
                break;

              case "subtitle":
                var l = {};
                l.file = k(d, "url");
                l.kind = "captions";
                if (0 < k(d, "lang").length) {
                    var g = l;
                    d = k(d, "lang");
                    var q = {
                        zh: "Chinese",
                        nl: "Dutch",
                        en: "English",
                        fr: "French",
                        de: "German",
                        it: "Italian",
                        ja: "Japanese",
                        pt: "Portuguese",
                        ru: "Russian",
                        es: "Spanish"
                    };
                    d = q[d] ? q[d] : d;
                    g.label = d;
                }
                p.push(l);
            }
            c.hasOwnProperty("tracks") || (c.tracks = []);
            for (m = 0; m < p.length; m++) c.tracks.push(p[m]);
            return c;
        };
    }(jwplayer.parsers), function(d) {
        function a(a) {
            for (var c = {}, e = 0; e < a.childNodes.length; e++) {
                var h = a.childNodes[e], p = j(h);
                if (p) switch (p.toLowerCase()) {
                  case "enclosure":
                    c.file = k.xmlAttribute(h, "url");
                    break;

                  case "title":
                    c.title = f(h);
                    break;

                  case "guid":
                    c.mediaid = f(h);
                    break;

                  case "pubdate":
                    c.date = f(h);
                    break;

                  case "description":
                    c.description = f(h);
                    break;

                  case "link":
                    c.link = f(h);
                    break;

                  case "category":
                    c.tags = c.tags ? c.tags + f(h) : f(h);
                }
            }
            c = d.mediaparser.parseGroup(a, c);
            c = d.jwparser.parseEntry(a, c);
            return new jwplayer.playlist.item(c);
        }
        var k = jwplayer.utils, f = d.textContent, h = d.getChildNode, e = d.numChildren, j = d.localName;
        d.rssparser = {};
        d.rssparser.parse = function(b) {
            for (var c = [], f = 0; f < e(b); f++) {
                var d = h(b, f);
                if ("channel" == j(d).toLowerCase()) for (var k = 0; k < e(d); k++) {
                    var l = h(d, k);
                    "item" == j(l).toLowerCase() && c.push(a(l));
                }
            }
            return c;
        };
    }(jwplayer.parsers), function(d) {
        d.playlist = function(a) {
            var k = [];
            if ("array" == d.utils.typeOf(a)) for (var f = 0; f < a.length; f++) k.push(new d.playlist.item(a[f])); else k.push(new d.playlist.item(a));
            return k;
        };
    }(jwplayer), function(d) {
        var a = d.item = function(k) {
            var f = jwplayer.utils, h = f.extend({}, a.defaults, k);
            h.tracks = k && f.exists(k.tracks) ? k.tracks : [];
            0 == h.sources.length && (h.sources = [ new d.source(h) ]);
            for (var e = 0; e < h.sources.length; e++) {
                var j = h.sources[e]["default"];
                h.sources[e]["default"] = j ? "true" == j.toString() : !1;
                h.sources[e] = new d.source(h.sources[e]);
            }
            if (h.captions && !f.exists(k.tracks)) {
                for (k = 0; k < h.captions.length; k++) h.tracks.push(h.captions[k]);
                delete h.captions;
            }
            for (e = 0; e < h.tracks.length; e++) h.tracks[e] = new d.track(h.tracks[e]);
            return h;
        };
        a.defaults = {
            description: "",
            image: "",
            mediaid: "",
            title: "",
            sources: [],
            tracks: []
        };
    }(jwplayer.playlist), function(d) {
        var a = jwplayer, k = a.utils, f = a.events, h = a.parsers;
        d.loader = function() {
            function a(e) {
                try {
                    var j = e.responseXML.childNodes;
                    e = "";
                    for (var k = 0; k < j.length && !(e = j[k], 8 != e.nodeType); k++) ;
                    "xml" == h.localName(e) && (e = e.nextSibling);
                    if ("rss" != h.localName(e)) b("Not a valid RSS feed"); else {
                        var l = new d(h.rssparser.parse(e));
                        c.sendEvent(f.JWPLAYER_PLAYLIST_LOADED, {
                            playlist: l
                        });
                    }
                } catch (g) {
                    b();
                }
            }
            function j(a) {
                b(a.match(/invalid/i) ? "Not a valid RSS feed" : "");
            }
            function b(a) {
                c.sendEvent(f.JWPLAYER_ERROR, {
                    message: a ? a : "Error loading file"
                });
            }
            var c = new f.eventdispatcher();
            k.extend(this, c);
            this.load = function(b) {
                k.ajax(b, a, j);
            };
        };
    }(jwplayer.playlist), function(d) {
        var a = jwplayer.utils, k = {
            file: void 0,
            label: void 0,
            type: void 0,
            "default": void 0
        };
        d.source = function(f) {
            var d = a.extend({}, k);
            a.foreach(k, function(e) {
                a.exists(f[e]) && (d[e] = f[e], delete f[e]);
            });
            d.type && 0 < d.type.indexOf("/") && (d.type = a.extensionmap.mimeType(d.type));
            "m3u8" == d.type && (d.type = "hls");
            "smil" == d.type && (d.type = "rtmp");
            return d;
        };
    }(jwplayer.playlist), function(d) {
        var a = jwplayer.utils, k = {
            file: void 0,
            label: void 0,
            kind: "captions",
            "default": !1
        };
        d.track = function(d) {
            var h = a.extend({}, k);
            d || (d = {});
            a.foreach(k, function(e) {
                a.exists(d[e]) && (h[e] = d[e], delete d[e]);
            });
            return h;
        };
    }(jwplayer.playlist), function(d) {
        var a = d.utils, k = d.events, f = !0, h = !1, e = document, j = d.embed = function(b) {
            function c(b, c) {
                a.foreach(c, function(a, c) {
                    "function" == typeof b[a] && b[a].call(b, c);
                });
            }
            function n() {
                if (r.sitecatalyst) try {
                    null != s && s.hasOwnProperty("Media") || l();
                } catch (e) {
                    l();
                    return;
                }
                if ("array" == a.typeOf(r.playlist) && 2 > r.playlist.length && (0 == r.playlist.length || !r.playlist[0].sources || 0 == r.playlist[0].sources.length)) p(); else if (!z) if ("string" == a.typeOf(r.playlist)) {
                    var g = new d.playlist.loader();
                    g.addEventListener(k.JWPLAYER_PLAYLIST_LOADED, function(a) {
                        r.playlist = a.playlist;
                        z = h;
                        n();
                    });
                    g.addEventListener(k.JWPLAYER_ERROR, function(a) {
                        z = h;
                        p(a);
                    });
                    z = f;
                    g.load(r.playlist);
                } else if (y.getStatus() == a.loaderstatus.COMPLETE) {
                    for (g = 0; g < r.modes.length; g++) if (r.modes[g].type && j[r.modes[g].type]) {
                        var u = a.extend({}, r), w = new j[r.modes[g].type](t, r.modes[g], u, y, b);
                        if (w.supportsConfig()) return w.addEventListener(k.ERROR, m), w.embed(), c(b, u.events), 
                        b;
                    }
                    if (r.fallback) {
                        var x = "No suitable players found and fallback enabled";
                        C = setTimeout(function() {
                            q(x, f);
                        }, 10);
                        a.log(x);
                        new j.download(t, r, p);
                    } else x = "No suitable players found and fallback disabled", q(x, h), a.log(x), 
                    t.parentNode.replaceChild(v, t);
                }
            }
            function m(a) {
                g(t, B + a.message);
            }
            function p(a) {
                a && a.message ? g(t, "Error loading playlist: " + a.message) : g(t, B + "No playable sources found");
            }
            function l() {
                g(t, "Adobe SiteCatalyst Error: Could not find Media Module");
            }
            function g(b, c) {
                if (r.fallback) {
                    var e = b.style;
                    e.backgroundColor = "#000";
                    e.color = "#FFF";
                    e.width = a.styleDimension(r.width);
                    e.height = a.styleDimension(r.height);
                    e.display = "table";
                    e.opacity = 1;
                    var e = document.createElement("p"), d = e.style;
                    d.verticalAlign = "middle";
                    d.textAlign = "center";
                    d.display = "table-cell";
                    d.font = "15px/20px Arial, Helvetica, sans-serif";
                    e.innerHTML = c.replace(":", ":<br>");
                    b.innerHTML = "";
                    b.appendChild(e);
                    q(c, f);
                } else q(c, h);
            }
            function q(a, c) {
                C && (clearTimeout(C), C = null);
                b.dispatchEvent(k.JWPLAYER_SETUP_ERROR, {
                    message: a,
                    fallback: c
                });
            }
            var r = new j.config(b.config), t, u, v, w = r.width, x = r.height, B = "Error loading player: ", y = d.plugins.loadPlugins(b.id, r.plugins), z = h, C = null;
            r.fallbackDiv && (v = r.fallbackDiv, delete r.fallbackDiv);
            r.id = b.id;
            u = e.getElementById(b.id);
            r.aspectratio ? b.config.aspectratio = r.aspectratio : delete b.config.aspectratio;
            t = e.createElement("div");
            t.id = u.id;
            t.style.width = 0 < w.toString().indexOf("%") ? w : w + "px";
            t.style.height = 0 < x.toString().indexOf("%") ? x : x + "px";
            u.parentNode.replaceChild(t, u);
            d.embed.errorScreen = g;
            y.addEventListener(k.COMPLETE, n);
            y.addEventListener(k.ERROR, function(a) {
                g(t, "Could not load plugins: " + a.message);
            });
            y.load();
            return b;
        };
    }(jwplayer), function(d) {
        function a(a) {
            if (a.playlist) for (var d = 0; d < a.playlist.length; d++) a.playlist[d] = new h(a.playlist[d]); else {
                var b = {};
                f.foreach(h.defaults, function(c) {
                    k(a, b, c);
                });
                b.sources || (a.levels ? (b.sources = a.levels, delete a.levels) : (d = {}, k(a, d, "file"), 
                k(a, d, "type"), b.sources = d.file ? [ d ] : []));
                a.playlist = [ new h(b) ];
            }
        }
        function k(a, d, b) {
            f.exists(a[b]) && (d[b] = a[b], delete a[b]);
        }
        var f = d.utils, h = d.playlist.item;
        (d.embed.config = function(e) {
            var j = {
                fallback: !0,
                height: 270,
                primary: "html5",
                width: 480,
                base: e.base ? e.base : f.getScriptPath("jwplayer.js"),
                aspectratio: ""
            };
            e = f.extend(j, d.defaults, e);
            var j = {
                type: "html5",
                src: e.base + "jwplayer.html5.js"
            }, b = {
                type: "flash",
                src: e.base + "jwplayer.flash.swf"
            };
            e.modes = "flash" == e.primary ? [ b, j ] : [ j, b ];
            e.listbar && (e.playlistsize = e.listbar.size, e.playlistposition = e.listbar.position, 
            e.playlistlayout = e.listbar.layout);
            e.flashplayer && (b.src = e.flashplayer);
            e.html5player && (j.src = e.html5player);
            a(e);
            b = e.aspectratio;
            if ("string" != typeof b || !f.exists(b)) j = 0; else {
                var c = b.indexOf(":");
                -1 == c ? j = 0 : (j = parseFloat(b.substr(0, c)), b = parseFloat(b.substr(c + 1)), 
                j = 0 >= j || 0 >= b ? 0 : 100 * (b / j) + "%");
            }
            -1 == e.width.toString().indexOf("%") ? delete e.aspectratio : j ? e.aspectratio = j : delete e.aspectratio;
            return e;
        }).addConfig = function(e, d) {
            a(d);
            return f.extend(e, d);
        };
    }(jwplayer), function(d) {
        var a = d.utils, k = document;
        d.embed.download = function(d, h, e) {
            function j(b, c) {
                for (var e = k.querySelectorAll(b), d = 0; d < e.length; d++) a.foreach(c, function(a, b) {
                    e[d].style[a] = b;
                });
            }
            function b(a, b, c) {
                a = k.createElement(a);
                b && (a.className = "jwdownload" + b);
                c && c.appendChild(a);
                return a;
            }
            var c = a.extend({}, h), n = c.width ? c.width : 480, m = c.height ? c.height : 320, p;
            h = h.logo ? h.logo : {
                prefix: a.repo(),
                file: "logo.png",
                margin: 10
            };
            var l, g, q, c = c.playlist, r, t = [ "mp4", "aac", "mp3" ];
            if (c && c.length) {
                r = c[0];
                p = r.sources;
                for (c = 0; c < p.length; c++) {
                    var u = p[c], v = u.type ? u.type : a.extensionmap.extType(a.extension(u.file));
                    u.file && a.foreach(t, function(b) {
                        v == t[b] ? (l = u.file, g = r.image) : a.isYouTube(u.file) && (q = u.file);
                    });
                }
                l ? (p = l, e = g, d && (c = b("a", "display", d), b("div", "icon", c), b("div", "logo", c), 
                p && c.setAttribute("href", a.getAbsolutePath(p))), c = "#" + d.id + " .jwdownload", 
                d.style.width = "", d.style.height = "", j(c + "display", {
                    width: a.styleDimension(Math.max(320, n)),
                    height: a.styleDimension(Math.max(180, m)),
                    background: "black center no-repeat " + (e ? "url(" + e + ")" : ""),
                    backgroundSize: "contain",
                    position: "relative",
                    border: "none",
                    display: "block"
                }), j(c + "display div", {
                    position: "absolute",
                    width: "100%",
                    height: "100%"
                }), j(c + "logo", {
                    top: h.margin + "px",
                    right: h.margin + "px",
                    background: "top right no-repeat url(" + h.prefix + h.file + ")"
                }), j(c + "icon", {
                    background: "center no-repeat url()"
                })) : q ? (h = q, d = b("embed", "", d), d.src = "http://www.youtube.com/v/" + a.youTubeID(h), 
                d.type = "application/x-shockwave-flash", d.width = n, d.height = m) : e();
            }
        };
    }(jwplayer), function(d) {
        var a = d.utils, k = d.events, f = {};
        (d.embed.flash = function(e, j, b, c, n) {
            function m(a, b, c) {
                var e = document.createElement("param");
                e.setAttribute("name", b);
                e.setAttribute("value", c);
                a.appendChild(e);
            }
            function p(a, b, c) {
                return function() {
                    try {
                        c && document.getElementById(n.id + "_wrapper").appendChild(b);
                        var e = document.getElementById(n.id).getPluginConfig("display");
                        "function" == typeof a.resize && a.resize(e.width, e.height);
                        b.style.left = e.x;
                        b.style.top = e.h;
                    } catch (d) {}
                };
            }
            function l(b) {
                if (!b) return {};
                var c = {}, e = [];
                a.foreach(b, function(b, d) {
                    var g = a.getPluginName(b);
                    e.push(b);
                    a.foreach(d, function(a, b) {
                        c[g + "." + a] = b;
                    });
                });
                c.plugins = e.join(",");
                return c;
            }
            var g = new d.events.eventdispatcher(), q = a.flashVersion();
            a.extend(this, g);
            this.embed = function() {
                b.id = n.id;
                if (10 > q) return g.sendEvent(k.ERROR, {
                    message: "Flash version must be 10.0 or greater"
                }), !1;
                var d, h, u = n.config.listbar, v = a.extend({}, b);
                if (e.id + "_wrapper" == e.parentNode.id) d = document.getElementById(e.id + "_wrapper"); else {
                    d = document.createElement("div");
                    h = document.createElement("div");
                    h.style.display = "none";
                    h.id = e.id + "_aspect";
                    d.id = e.id + "_wrapper";
                    d.style.position = "relative";
                    d.style.display = "block";
                    d.style.width = a.styleDimension(v.width);
                    d.style.height = a.styleDimension(v.height);
                    if (n.config.aspectratio) {
                        var w = parseFloat(n.config.aspectratio);
                        h.style.display = "block";
                        h.style.marginTop = n.config.aspectratio;
                        d.style.height = "auto";
                        d.style.display = "inline-block";
                        u && ("bottom" == u.position ? h.style.paddingBottom = u.size + "px" : "right" == u.position && (h.style.marginBottom = -1 * u.size * (w / 100) + "px"));
                    }
                    e.parentNode.replaceChild(d, e);
                    d.appendChild(e);
                    d.appendChild(h);
                }
                d = c.setupPlugins(n, v, p);
                0 < d.length ? a.extend(v, l(d.plugins)) : delete v.plugins;
                "undefined" != typeof v["dock.position"] && "false" == v["dock.position"].toString().toLowerCase() && (v.dock = v["dock.position"], 
                delete v["dock.position"]);
                d = v.wmode ? v.wmode : v.height && 40 >= v.height ? "transparent" : "opaque";
                h = "height width modes events primary base fallback volume".split(" ");
                for (u = 0; u < h.length; u++) delete v[h[u]];
                h = a.getCookies();
                a.foreach(h, function(a, b) {
                    "undefined" == typeof v[a] && (v[a] = b);
                });
                h = window.location.href.split("/");
                h.splice(h.length - 1, 1);
                h = h.join("/");
                v.base = h + "/";
                f[e.id] = v;
                a.isIE() ? (h = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" " width="100%" height="100%"id="' + e.id + '" name="' + e.id + '" tabindex=0"">', 
                h += '<param name="movie" value="' + j.src + '">', h += '<param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always">', 
                h += '<param name="seamlesstabbing" value="true">', h += '<param name="wmode" value="' + d + '">', 
                h += '<param name="bgcolor" value="#000000">', h += "</object>", e.outerHTML = h, 
                d = document.getElementById(e.id)) : (h = document.createElement("object"), h.setAttribute("type", "application/x-shockwave-flash"), 
                h.setAttribute("data", j.src), h.setAttribute("width", "100%"), h.setAttribute("height", "100%"), 
                h.setAttribute("bgcolor", "#000000"), h.setAttribute("id", e.id), h.setAttribute("name", e.id), 
                h.setAttribute("tabindex", 0), m(h, "allowfullscreen", "true"), m(h, "allowscriptaccess", "always"), 
                m(h, "seamlesstabbing", "true"), m(h, "wmode", d), e.parentNode.replaceChild(h, e), 
                d = h);
                n.config.aspectratio && (d.style.position = "absolute");
                n.container = d;
                n.setPlayer(d, "flash");
            };
            this.supportsConfig = function() {
                if (q) if (b) {
                    if ("string" == a.typeOf(b.playlist)) return !0;
                    try {
                        var c = b.playlist[0].sources;
                        if ("undefined" == typeof c) return !0;
                        for (var d = 0; d < c.length; d++) if (c[d].file && h(c[d].file, c[d].type)) return !0;
                    } catch (e) {}
                } else return !0;
                return !1;
            };
        }).getVars = function(a) {
            return f[a];
        };
        var h = d.embed.flashCanPlay = function(d, f) {
            if (a.isYouTube(d) || a.isRtmp(d, f) || "hls" == f) return !0;
            var b = a.extensionmap[f ? f : a.extension(d)];
            return !b ? !1 : !!b.flash;
        };
    }(jwplayer), function(d) {
        var a = d.utils, k = a.extensionmap, f = d.events;
        d.embed.html5 = function(h, e, j, b, c) {
            function n(a, b, c) {
                return function() {
                    try {
                        var d = document.querySelector("#" + h.id + " .jwmain");
                        c && d.appendChild(b);
                        "function" == typeof a.resize && (a.resize(d.clientWidth, d.clientHeight), setTimeout(function() {
                            a.resize(d.clientWidth, d.clientHeight);
                        }, 400));
                        b.left = d.style.left;
                        b.top = d.style.top;
                    } catch (e) {}
                };
            }
            function m(a) {
                p.sendEvent(a.type, {
                    message: "HTML5 player not found"
                });
            }
            var p = this, l = new f.eventdispatcher();
            a.extend(p, l);
            p.embed = function() {
                if (d.html5) {
                    b.setupPlugins(c, j, n);
                    h.innerHTML = "";
                    var g = d.utils.extend({}, j);
                    delete g.volume;
                    g = new d.html5.player(g);
                    c.container = document.getElementById(c.id);
                    c.setPlayer(g, "html5");
                } else g = new a.scriptloader(e.src), g.addEventListener(f.ERROR, m), g.addEventListener(f.COMPLETE, p.embed), 
                g.load();
            };
            p.supportsConfig = function() {
                if (d.vid.canPlayType) try {
                    if ("string" == a.typeOf(j.playlist)) return !0;
                    for (var b = j.playlist[0].sources, c = 0; c < b.length; c++) {
                        var e;
                        var f = b[c].file, h = b[c].type;
                        if (null !== navigator.userAgent.match(/BlackBerry/i) || a.isAndroid() && ("m3u" == a.extension(f) || "m3u8" == a.extension(f)) || a.isRtmp(f, h)) e = !1; else {
                            var l = k[h ? h : a.extension(f)], m;
                            if (!l || l.flash && !l.html5) m = !1; else {
                                var n = l.html5, p = d.vid;
                                if (n) try {
                                    m = p.canPlayType(n) ? !0 : !1;
                                } catch (y) {
                                    m = !1;
                                } else m = !0;
                            }
                            e = m;
                        }
                        if (e) return !0;
                    }
                } catch (z) {}
                return !1;
            };
        };
    }(jwplayer), function(d) {
        var a = d.embed, k = d.utils, f = k.extend(function(f) {
            var e = k.repo(), j = k.extend({}, d.defaults), b = k.extend({}, j, f.config), c = f.config, n = b.plugins, m = b.analytics, p = e + "jwpsrv.js", l = e + "sharing.js", g = e + "related.js", q = e + "gapro.js", j = d.key ? d.key : j.key, r = new d.utils.key(j).edition(), n = n ? n : {};
            "ads" == r && b.advertising && (b.advertising.client.match(".js$|.swf$") ? n[b.advertising.client] = b.advertising : n[e + b.advertising.client + ".js"] = b.advertising);
            delete c.advertising;
            c.key = j;
            b.analytics && b.analytics.client && b.analytics.client.match(".js$|.swf$") && (p = b.analytics.client);
            delete c.analytics;
            if ("free" == r || !m || !1 !== m.enabled) n[p] = m ? m : {};
            delete n.sharing;
            delete n.related;
            switch (r) {
              case "premium":
              case "ads":
                b.related && (b.related.client && b.related.client.match(".js$|.swf$") && (g = b.related.client), 
                n[g] = b.related), b.ga && (b.ga.client && b.ga.client.match(".js$|.swf$") && (q = b.ga.client), 
                n[q] = b.ga), c.sitecatalyst && new d.embed.sitecatalyst(f);

              case "pro":
                b.sharing && (b.sharing.client && b.sharing.client.match(".js$|.swf$") && (l = b.sharing.client), 
                n[l] = b.sharing), b.skin && (c.skin = b.skin.replace(/^(beelden|bekle|five|glow|modieus|roundster|stormtrooper|vapor)$/i, k.repo() + "skins/$1.xml"));
            }
            c.plugins = n;
            return new a(f);
        }, a);
        d.embed = f;
    }(jwplayer), function(d) {
        var a = jwplayer.utils;
        d.sitecatalyst = function(d) {
            function f(b) {
                c.debug && a.log(b);
            }
            function h(a) {
                a = a.split("/");
                a = a[a.length - 1];
                a = a.split("?");
                return a[0];
            }
            function e() {
                if (!g) {
                    g = !0;
                    var a = b.getPosition();
                    f("stop: " + m + " : " + a);
                    s.Media.stop(m, a);
                }
            }
            function j() {
                q || (e(), q = !0, f("close: " + m), s.Media.close(m), r = !0, l = 0);
            }
            var b = d, c = a.extend({}, b.config.sitecatalyst), n = {
                onPlay: function() {
                    if (!r) {
                        var a = b.getPosition();
                        g = !1;
                        f("play: " + m + " : " + a);
                        s.Media.play(m, a);
                    }
                },
                onPause: e,
                onBuffer: e,
                onIdle: j,
                onPlaylistItem: function(d) {
                    try {
                        r = !0;
                        j();
                        l = 0;
                        var e;
                        if (c.mediaName) e = c.mediaName; else {
                            var g = b.getPlaylistItem(d.index);
                            e = g.title ? g.title : g.file ? h(g.file) : g.sources && g.sources.length ? h(g.sources[0].file) : "";
                        }
                        m = e;
                        p = c.playerName ? c.playerName : b.id;
                    } catch (f) {
                        a.log(f);
                    }
                },
                onTime: function() {
                    if (r) {
                        var a = b.getDuration();
                        if (-1 == a) return;
                        q = g = r = !1;
                        f("open: " + m + " : " + a + " : " + p);
                        s.Media.open(m, a, p);
                        f("play: " + m + " : 0");
                        s.Media.play(m, 0);
                    }
                    a = b.getPosition();
                    if (3 <= Math.abs(a - l)) {
                        var c = l;
                        f("seek: " + c + " to " + a);
                        f("stop: " + m + " : " + c);
                        s.Media.stop(m, c);
                        f("play: " + m + " : " + a);
                        s.Media.play(m, a);
                    }
                    l = a;
                },
                onComplete: j
            }, m, p, l, g = !0, q = !0, r;
            a.foreach(n, function(a) {
                b[a](n[a]);
            });
        };
    }(jwplayer.embed), function(d) {
        var a = [], k = d.utils, f = d.events, h = f.state, e = document, j = d.api = function(a) {
            function c(a, b) {
                return function(c) {
                    return b(a, c);
                };
            }
            function n(a, b) {
                r[a] || (r[a] = [], p(f.JWPLAYER_PLAYER_STATE, function(b) {
                    var c = b.newstate;
                    b = b.oldstate;
                    if (c == a) {
                        var d = r[c];
                        if (d) for (var e = 0; e < d.length; e++) "function" == typeof d[e] && d[e].call(this, {
                            oldstate: b,
                            newstate: c
                        });
                    }
                }));
                r[a].push(b);
                return g;
            }
            function m(a, b) {
                try {
                    a.jwAddEventListener(b, 'function(dat) { jwplayer("' + g.id + '").dispatchEvent("' + b + '", dat); }');
                } catch (c) {
                    k.log("Could not add internal listener");
                }
            }
            function p(a, b) {
                q[a] || (q[a] = [], t && u && m(t, a));
                q[a].push(b);
                return g;
            }
            function l() {
                if (u) {
                    for (var a = arguments[0], b = [], c = 1; c < arguments.length; c++) b.push(arguments[c]);
                    if ("undefined" != typeof t && "function" == typeof t[a]) switch (b.length) {
                      case 4:
                        return t[a](b[0], b[1], b[2], b[3]);

                      case 3:
                        return t[a](b[0], b[1], b[2]);

                      case 2:
                        return t[a](b[0], b[1]);

                      case 1:
                        return t[a](b[0]);

                      default:
                        return t[a]();
                    }
                    return null;
                }
                v.push(arguments);
            }
            var g = this, q = {}, r = {}, t = void 0, u = !1, v = [], w = void 0, x = {}, B = {};
            g.container = a;
            g.id = a.id;
            g.getBuffer = function() {
                return l("jwGetBuffer");
            };
            g.getContainer = function() {
                return g.container;
            };
            g.addButton = function(a, b, c, d) {
                try {
                    B[d] = c, l("jwDockAddButton", a, b, "jwplayer('" + g.id + "').callback('" + d + "')", d);
                } catch (e) {
                    k.log("Could not add dock button" + e.message);
                }
            };
            g.removeButton = function(a) {
                l("jwDockRemoveButton", a);
            };
            g.callback = function(a) {
                if (B[a]) B[a]();
            };
            g.forceState = function(a) {
                l("jwForceState", a);
                return g;
            };
            g.releaseState = function() {
                return l("jwReleaseState");
            };
            g.getDuration = function() {
                return l("jwGetDuration");
            };
            g.getFullscreen = function() {
                return l("jwGetFullscreen");
            };
            g.getHeight = function() {
                return l("jwGetHeight");
            };
            g.getLockState = function() {
                return l("jwGetLockState");
            };
            g.getMeta = function() {
                return g.getItemMeta();
            };
            g.getMute = function() {
                return l("jwGetMute");
            };
            g.getPlaylist = function() {
                var a = l("jwGetPlaylist");
                "flash" == g.renderingMode && k.deepReplaceKeyName(a, [ "__dot__", "__spc__", "__dsh__", "__default__" ], [ ".", " ", "-", "default" ]);
                return a;
            };
            g.getPlaylistItem = function(a) {
                k.exists(a) || (a = g.getPlaylistIndex());
                return g.getPlaylist()[a];
            };
            g.getPlaylistIndex = function() {
                return l("jwGetPlaylistIndex");
            };
            g.getPosition = function() {
                return l("jwGetPosition");
            };
            g.getRenderingMode = function() {
                return g.renderingMode;
            };
            g.getState = function() {
                return l("jwGetState");
            };
            g.getVolume = function() {
                return l("jwGetVolume");
            };
            g.getWidth = function() {
                return l("jwGetWidth");
            };
            g.setFullscreen = function(a) {
                k.exists(a) ? l("jwSetFullscreen", a) : l("jwSetFullscreen", !l("jwGetFullscreen"));
                return g;
            };
            g.setMute = function(a) {
                k.exists(a) ? l("jwSetMute", a) : l("jwSetMute", !l("jwGetMute"));
                return g;
            };
            g.lock = function() {
                return g;
            };
            g.unlock = function() {
                return g;
            };
            g.load = function(a) {
                l("jwLoad", a);
                return g;
            };
            g.playlistItem = function(a) {
                l("jwPlaylistItem", parseInt(a));
                return g;
            };
            g.playlistPrev = function() {
                l("jwPlaylistPrev");
                return g;
            };
            g.playlistNext = function() {
                l("jwPlaylistNext");
                return g;
            };
            g.resize = function(a, b) {
                if ("flash" != g.renderingMode) {
                    var c = document.getElementById(g.id);
                    c.className = c.className.replace(/\s+aspectMode/, "");
                    c.style.display = "block";
                    l("jwResize", a, b);
                } else {
                    var c = e.getElementById(g.id + "_wrapper"), d = e.getElementById(g.id + "_aspect");
                    d && (d.style.display = "none");
                    c && (c.style.display = "block", c.style.width = k.styleDimension(a), c.style.height = k.styleDimension(b));
                }
                return g;
            };
            g.play = function(a) {
                "undefined" == typeof a ? (a = g.getState(), a == h.PLAYING || a == h.BUFFERING ? l("jwPause") : l("jwPlay")) : l("jwPlay", a);
                return g;
            };
            g.pause = function(a) {
                "undefined" == typeof a ? (a = g.getState(), a == h.PLAYING || a == h.BUFFERING ? l("jwPause") : l("jwPlay")) : l("jwPause", a);
                return g;
            };
            g.stop = function() {
                l("jwStop");
                return g;
            };
            g.seek = function(a) {
                l("jwSeek", a);
                return g;
            };
            g.setVolume = function(a) {
                l("jwSetVolume", a);
                return g;
            };
            g.loadInstream = function(a, b) {
                return w = new j.instream(this, t, a, b);
            };
            g.getQualityLevels = function() {
                return l("jwGetQualityLevels");
            };
            g.getCurrentQuality = function() {
                return l("jwGetCurrentQuality");
            };
            g.setCurrentQuality = function(a) {
                l("jwSetCurrentQuality", a);
            };
            g.getCaptionsList = function() {
                return l("jwGetCaptionsList");
            };
            g.getCurrentCaptions = function() {
                return l("jwGetCurrentCaptions");
            };
            g.setCurrentCaptions = function(a) {
                l("jwSetCurrentCaptions", a);
            };
            g.getControls = function() {
                return l("jwGetControls");
            };
            g.getSafeRegion = function() {
                return l("jwGetSafeRegion");
            };
            g.setControls = function(a) {
                l("jwSetControls", a);
            };
            g.destroyPlayer = function() {
                l("jwPlayerDestroy");
            };
            g.playAd = function(a) {
                l("jwPlayAd", a);
            };
            var y = {
                onBufferChange: f.JWPLAYER_MEDIA_BUFFER,
                onBufferFull: f.JWPLAYER_MEDIA_BUFFER_FULL,
                onError: f.JWPLAYER_ERROR,
                onSetupError: f.JWPLAYER_SETUP_ERROR,
                onFullscreen: f.JWPLAYER_FULLSCREEN,
                onMeta: f.JWPLAYER_MEDIA_META,
                onMute: f.JWPLAYER_MEDIA_MUTE,
                onPlaylist: f.JWPLAYER_PLAYLIST_LOADED,
                onPlaylistItem: f.JWPLAYER_PLAYLIST_ITEM,
                onPlaylistComplete: f.JWPLAYER_PLAYLIST_COMPLETE,
                onReady: f.API_READY,
                onResize: f.JWPLAYER_RESIZE,
                onComplete: f.JWPLAYER_MEDIA_COMPLETE,
                onSeek: f.JWPLAYER_MEDIA_SEEK,
                onTime: f.JWPLAYER_MEDIA_TIME,
                onVolume: f.JWPLAYER_MEDIA_VOLUME,
                onBeforePlay: f.JWPLAYER_MEDIA_BEFOREPLAY,
                onBeforeComplete: f.JWPLAYER_MEDIA_BEFORECOMPLETE,
                onDisplayClick: f.JWPLAYER_DISPLAY_CLICK,
                onControls: f.JWPLAYER_CONTROLS,
                onQualityLevels: f.JWPLAYER_MEDIA_LEVELS,
                onQualityChange: f.JWPLAYER_MEDIA_LEVEL_CHANGED,
                onCaptionsList: f.JWPLAYER_CAPTIONS_LIST,
                onCaptionsChange: f.JWPLAYER_CAPTIONS_CHANGED,
                onAdError: f.JWPLAYER_AD_ERROR,
                onAdClick: f.JWPLAYER_AD_CLICK,
                onAdImpression: f.JWPLAYER_AD_IMPRESSION,
                onAdTime: f.JWPLAYER_AD_TIME,
                onAdComplete: f.JWPLAYER_AD_COMPLETE,
                onAdCompanions: f.JWPLAYER_AD_COMPANIONS
            };
            k.foreach(y, function(a) {
                g[a] = c(y[a], p);
            });
            var z = {
                onBuffer: h.BUFFERING,
                onPause: h.PAUSED,
                onPlay: h.PLAYING,
                onIdle: h.IDLE
            };
            k.foreach(z, function(a) {
                g[a] = c(z[a], n);
            });
            g.remove = function() {
                if (!u) throw "Cannot call remove() before player is ready";
                v = [];
                j.destroyPlayer(this.id);
            };
            g.setup = function(a) {
                if (d.embed) {
                    var b = e.getElementById(g.id);
                    b && (a.fallbackDiv = b);
                    b = g;
                    v = [];
                    j.destroyPlayer(b.id);
                    b = d(g.id);
                    b.config = a;
                    return new d.embed(b);
                }
                return g;
            };
            g.registerPlugin = function(a, b, c, e) {
                d.plugins.registerPlugin(a, b, c, e);
            };
            g.setPlayer = function(a, b) {
                t = a;
                g.renderingMode = b;
            };
            g.detachMedia = function() {
                if ("html5" == g.renderingMode) return l("jwDetachMedia");
            };
            g.attachMedia = function(a) {
                if ("html5" == g.renderingMode) return l("jwAttachMedia", a);
            };
            g.dispatchEvent = function(a, b) {
                if (q[a]) for (var c = k.translateEventResponse(a, b), d = 0; d < q[a].length; d++) if ("function" == typeof q[a][d]) try {
                    a == f.JWPLAYER_PLAYLIST_LOADED && k.deepReplaceKeyName(c.playlist, [ "__dot__", "__spc__", "__dsh__", "__default__" ], [ ".", " ", "-", "default" ]), 
                    q[a][d].call(this, c);
                } catch (e) {
                    k.log("There was an error calling back an event handler");
                }
            };
            g.dispatchInstreamEvent = function(a) {
                w && w.dispatchEvent(a, arguments);
            };
            g.callInternal = l;
            g.playerReady = function(a) {
                u = !0;
                t || g.setPlayer(e.getElementById(a.id));
                g.container = e.getElementById(g.id);
                k.foreach(q, function(a) {
                    m(t, a);
                });
                p(f.JWPLAYER_PLAYLIST_ITEM, function() {
                    x = {};
                });
                p(f.JWPLAYER_MEDIA_META, function(a) {
                    k.extend(x, a.metadata);
                });
                for (g.dispatchEvent(f.API_READY); 0 < v.length; ) l.apply(this, v.shift());
            };
            g.getItemMeta = function() {
                return x;
            };
            g.isBeforePlay = function() {
                return t.jwIsBeforePlay();
            };
            g.isBeforeComplete = function() {
                return t.jwIsBeforeComplete();
            };
            return g;
        };
        j.selectPlayer = function(b) {
            var c;
            k.exists(b) || (b = 0);
            b.nodeType ? c = b : "string" == typeof b && (c = e.getElementById(b));
            return c ? (b = j.playerById(c.id)) ? b : j.addPlayer(new j(c)) : "number" == typeof b ? a[b] : null;
        };
        j.playerById = function(b) {
            for (var c = 0; c < a.length; c++) if (a[c].id == b) return a[c];
            return null;
        };
        j.addPlayer = function(b) {
            for (var c = 0; c < a.length; c++) if (a[c] == b) return b;
            a.push(b);
            return b;
        };
        j.destroyPlayer = function(b) {
            for (var c = -1, d, f = 0; f < a.length; f++) a[f].id == b && (c = f, d = a[f]);
            0 <= c && (b = d.id, f = e.getElementById(b + ("flash" == d.renderingMode ? "_wrapper" : "")), 
            k.clearCss && k.clearCss("#" + b), f && ("html5" == d.renderingMode && d.destroyPlayer(), 
            d = e.createElement("div"), d.id = b, f.parentNode.replaceChild(d, f)), a.splice(c, 1));
            return null;
        };
        d.playerReady = function(a) {
            var c = d.api.playerById(a.id);
            c ? c.playerReady(a) : d.api.selectPlayer(a.id).playerReady(a);
        };
    }(jwplayer), function(d) {
        var a = d.events, k = d.utils, f = a.state;
        d.api.instream = function(d, e, j, b) {
            function c(a, b) {
                l[a] || (l[a] = [], p.jwInstreamAddEventListener(a, 'function(dat) { jwplayer("' + m.id + '").dispatchInstreamEvent("' + a + '", dat); }'));
                l[a].push(b);
                return this;
            }
            function n(b, d) {
                g[b] || (g[b] = [], c(a.JWPLAYER_PLAYER_STATE, function(a) {
                    var c = a.newstate, d = a.oldstate;
                    if (c == b) {
                        var e = g[c];
                        if (e) for (var f = 0; f < e.length; f++) "function" == typeof e[f] && e[f].call(this, {
                            oldstate: d,
                            newstate: c,
                            type: a.type
                        });
                    }
                }));
                g[b].push(d);
                return this;
            }
            var m = d, p = e, l = {}, g = {};
            this.dispatchEvent = function(a, b) {
                if (l[a]) for (var c = k.translateEventResponse(a, b[1]), d = 0; d < l[a].length; d++) "function" == typeof l[a][d] && l[a][d].call(this, c);
            };
            this.onError = function(b) {
                return c(a.JWPLAYER_ERROR, b);
            };
            this.onFullscreen = function(b) {
                return c(a.JWPLAYER_FULLSCREEN, b);
            };
            this.onMeta = function(b) {
                return c(a.JWPLAYER_MEDIA_META, b);
            };
            this.onMute = function(b) {
                return c(a.JWPLAYER_MEDIA_MUTE, b);
            };
            this.onComplete = function(b) {
                return c(a.JWPLAYER_MEDIA_COMPLETE, b);
            };
            this.onTime = function(b) {
                return c(a.JWPLAYER_MEDIA_TIME, b);
            };
            this.onBuffer = function(a) {
                return n(f.BUFFERING, a);
            };
            this.onPause = function(a) {
                return n(f.PAUSED, a);
            };
            this.onPlay = function(a) {
                return n(f.PLAYING, a);
            };
            this.onIdle = function(a) {
                return n(f.IDLE, a);
            };
            this.onClick = function(b) {
                return c(a.JWPLAYER_INSTREAM_CLICK, b);
            };
            this.onInstreamDestroyed = function(b) {
                return c(a.JWPLAYER_INSTREAM_DESTROYED, b);
            };
            this.play = function(a) {
                p.jwInstreamPlay(a);
            };
            this.pause = function(a) {
                p.jwInstreamPause(a);
            };
            this.destroy = function() {
                p.jwInstreamDestroy();
            };
            this.setText = function(a) {
                p.jwInstreamSetText(a ? a : "");
            };
            m.callInternal("jwLoadInstream", j, b ? b : {});
        };
    }(jwplayer), function(d) {
        var a = d.api, k = a.selectPlayer;
        a.selectPlayer = function(a) {
            return (a = k(a)) ? a : {
                registerPlugin: function(a, e, f) {
                    d.plugins.registerPlugin(a, e, f);
                }
            };
        };
    }(jwplayer);
    window.jwplayer = jwplayer;
    return jwplayer;
});
